示例#1
0
        internal void CreateDirectoryLocal(FtpClient ftpClient, String directoryPath)
        {
            DFtpAction action = new CreateDirectoryLocalAction(client, directoryPath);
            DFtpResult result = action.Run();

            return;
        }
示例#2
0
        public DFtpResult Go()
        {
            String name = IOHelper.AskString("Enter new directory name.");

            // Create the action, Initialize it with the info we've collected
            DFtpAction action = new CreateDirectoryLocalAction(Client.ftpClient, Client.localDirectory + Path.DirectorySeparatorChar + name);

            // Carry out the action and get the result
            DFtpResult result = action.Run();

            // Give some feedback if successful
            if (result.Type == DFtpResultType.Ok)
            {
                IOHelper.Message("The directory '" + name + "' was created successfully.");
            }
            // Return the result after running.

            return(result);
        }