예제 #1
0
        public IEnumerable <FsFileStatusPage> ListFilesRecursivePaged(FsPath path, ListFilesOptions options)
        {
            var queue = new Queue <FsPath>();

            queue.Enqueue(path);

            while (queue.Count > 0)
            {
                FsPath cur_path = queue.Dequeue();

                foreach (var page in ListFilesPaged(cur_path, options))
                {
                    yield return(page);

                    foreach (var item in page.FileItems)
                    {
                        if (item.Type == Microsoft.Azure.Management.DataLake.Store.Models.FileType.DIRECTORY)
                        {
                            var new_path = cur_path.Append(item.PathSuffix);
                            queue.Enqueue(new_path);
                        }
                    }
                }
            }
        }
예제 #2
0
 public IEnumerable <FsFileStatusPage> ListFilesPaged(FsPath path, ListFilesOptions options)
 {
     return(this.RestClients.FileSystemRest.ListFilesPaged(this.Store, path, options));
 }