Package edu.isi.pegasus.gridftp
Class MakeDirectoryCommand
- java.lang.Object
-
- edu.isi.pegasus.gridftp.Command
-
- edu.isi.pegasus.gridftp.MakeDirectoryCommand
-
public class MakeDirectoryCommand extends Command
Implements the mkdir command for remote GridFTP servers- Author:
- Gideon Juve
-
-
Field Summary
Fields Modifier and Type Field Description private booleanallowExistsprivate org.apache.commons.logging.Logloggerprivate booleanmakeIntermediate-
Fields inherited from class edu.isi.pegasus.gridftp.Command
connectionCache, credential
-
-
Constructor Summary
Constructors Constructor Description MakeDirectoryCommand(boolean makeIntermediate, boolean allowExists)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MakeDirectoryCommandfromArguments(java.util.List<java.lang.String> args)private voidmkdir(GridFTPConnection conn, java.lang.String path)protected voidrun(GridFTPURL url)
-
-
-
Method Detail
-
run
protected void run(GridFTPURL url) throws java.net.ConnectException, GridFTPException
- Specified by:
runin classCommand- Parameters:
url- The URL to operate on- Throws:
java.net.ConnectExceptionGridFTPException
-
mkdir
private void mkdir(GridFTPConnection conn, java.lang.String path) throws GridFTPException
- Throws:
GridFTPException
-
fromArguments
public static MakeDirectoryCommand fromArguments(java.util.List<java.lang.String> args) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
-