Beispiel #1
0
        public async Task <IEnumerable <FileSpec> > GetFileListAsync(string searchPattern = null, int?limit = null, int?skip = null, CancellationToken cancellationToken = new CancellationToken())
        {
            if (String.IsNullOrEmpty(searchPattern))
            {
                searchPattern = "*";
            }

            var files = (await UnscopedStorage.GetFileListAsync(String.Concat(_pathPrefix, searchPattern), limit, skip, cancellationToken).AnyContext()).ToList();

            foreach (var file in files)
            {
                file.Path = file.Path.Substring(_pathPrefix.Length);
            }

            return(files);
        }