Beispiel #1
0
        public IEnumerable <FileSystemMetadata> GetDirectories(string path, bool recursive = false)
        {
            if (_sharpCifsFileSystem.IsEnabledForPath(path))
            {
                return(_sharpCifsFileSystem.GetDirectories(path, recursive));
            }

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

            return(ToMetadata(new DirectoryInfo(path).EnumerateDirectories("*", searchOption)));
        }