Skip to content

add operation not storing the name of the file correctly. #138

@S4tvara

Description

@S4tvara

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:

  1. Create a vault.
  2. Add test files from different directory paths.
  3. Run the ls command.
  4. 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.

Incorrect file name screenshot

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions