From f82644b856de0c0a770d1dd8721609b86804dbd2 Mon Sep 17 00:00:00 2001 From: Grzegorz Godlewski Date: Wed, 18 Dec 2024 16:43:23 +0100 Subject: [PATCH] Fix private dir Resolves: #522 --- src/containers/server/routes/FolderController.ts | 1 + src/containers/transform/DirectoryScanner.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/containers/server/routes/FolderController.ts b/src/containers/server/routes/FolderController.ts index cfc8674a..5bd7373d 100644 --- a/src/containers/server/routes/FolderController.ts +++ b/src/containers/server/routes/FolderController.ts @@ -323,6 +323,7 @@ export default class FolderController extends Controller { mimeType: MimeTypes.FOLDER_MIME, children: await this.generateChildren(subDir, driveId, userConfigService.config.transform_subdir || '/', filePath) }; + console.log('treeItem.children', treeItem.children); const changes = await getCachedChanges(this.logger, transformedFileSystem, contentFileService, googleFileSystem); await addGitData(treeItem.children, changes, ''); diff --git a/src/containers/transform/DirectoryScanner.ts b/src/containers/transform/DirectoryScanner.ts index 0d89cab6..ad790a4b 100644 --- a/src/containers/transform/DirectoryScanner.ts +++ b/src/containers/transform/DirectoryScanner.ts @@ -8,7 +8,7 @@ import {FileId} from '../../model/model.ts'; import {LOG_NAME} from './LocalLog.ts'; export const RESERVED_NAMES = [LOG_NAME, '.wgd-directory.yaml', '.wgd-local-log.csv', '.wgd-local-links.csv', - '.tree.json']; + '.tree.json', '.private']; export const RESERVED_DIR_NAMES = ['.git'];