Esempio n. 1
0
        public IEnumerable <string> GetFileSystemEntryPaths(string path, bool recursive = false)
        {
            if (_sharpCifsFileSystem.IsEnabledForPath(path))
            {
                return(_sharpCifsFileSystem.GetFileSystemEntryPaths(path, recursive));
            }

            var searchOption = recursive ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly;

            return(Directory.EnumerateFileSystemEntries(path, "*", searchOption));
        }