Describe the bug
After performing the add operation, the file name is not saved correctly. The program takes the last segment of the file path and uses it as the file name instead of preserving the original file name.
To Reproduce
Steps to reproduce the issue:
- Create a vault.
- Add test files from different directory paths.
- Run the
ls command.
- Observe that files appear with incorrect names.
Expected behavior
Files should be saved with their correct original names, regardless of their directory paths.
Screenshots
If applicable, add screenshots to help explain the issue.
Additional context
The issue occurs during the add operation — the file name handling logic seems to extract only the last path segment instead of the intended file name.
Describe the bug
After performing the add operation, the file name is not saved correctly. The program takes the last segment of the file path and uses it as the file name instead of preserving the original file name.
To Reproduce
Steps to reproduce the issue:
lscommand.Expected behavior
Files should be saved with their correct original names, regardless of their directory paths.
Screenshots
If applicable, add screenshots to help explain the issue.
Additional context
The issue occurs during the add operation — the file name handling logic seems to extract only the last path segment instead of the intended file name.