Esempio n. 1
0
        private GitreeListNode ReadListFolder(GitreeStorageFolderNode folder)
        {
            var documentItems = folder.GetDocuments().Select(ReadDocument).ToImmutableArray();
            var folderItems   = folder.GetFolders().Select(ReadItemFolder).ToImmutableArray();
            var blobList      = new GitreeListNode(folder.Name, documentItems.AddRange(folderItems));

            return(blobList);
        }
Esempio n. 2
0
 private Option <string> WriteList(GitreeListNode blobList, DirectoryInfo directory)
 {
     if (blobList.Items.Length == 0)
     {
         return(default);