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

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

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