Ejemplo n.º 1
0
        private void ReMoveDirectoryIfExist(string directory)
        {
            var verifyFolder = _ftp.DirectoryListSimple(directory);

            foreach (var dado in verifyFolder)
            {
                if (dado.Contains(DirectoryName))
                {
                    //test delete after create success
                    _ftp.DeleteDir(FromIntrum + DirectoryName);
                }
            }
        }