Fix folder deletion #140
No reviewers
Labels
No labels
bug
dependencies
docker
documentation
duplicate
enhancement
good first issue
help wanted
invalid
javascript
question
rust
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: andras/vault-link#140
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "asch/deletion"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Delete folders which would become empty after a syncing event
Pull Request Overview
This PR refactors the file listing functionality by renaming
listAllFilestolistFilesRecursivelyand adding support for listing files within specific root directories. The changes enable more targeted file operations and implement automatic cleanup of empty parent directories when files are deleted or moved.listAllFilesmethod tolistFilesRecursivelywith optional root parameter across all implementationsReviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
@ -146,6 +162,31 @@ export class FileOperations {The loop condition
directory.length > 1may not work correctly for relative paths. An empty directory path would have length 0, and a root directory might be represented as an empty string or single character, potentially causing the loop to continue indefinitely or skip valid directories.Use strict equality operator
===instead of==for better type safety and consistency with modern JavaScript/TypeScript practices.The file
/app/test-entrypoint.shis being made executable, but the COPY command for this file was removed on line 30. This will cause the chmod command to fail.