Skip to content

bug: Jan deletes / moves all data in Data folder path #4988

@iAdanos

Description

@iAdanos

Jan version

0.5.16

Describe the Bug

For "move data folder" operation or Factory Reset operation, Jan operates all of the data under configured data folder path (not matter if it's a Jan folder).

Also, on Windows, Jan allows to specify data folder path at disk root (e.g. "D:/").

Like this, if you misclick, a user can perform (already performed, by the way):

  1. Move Jan Data folder to D:/
  2. Try to move it to another location
  3. Get an error due to lack of space in target location
  4. Try to factory reset Jan
  5. Get all of the data in D:/ deletes without ability to restore from Trash Bin.

Please add some handler, this is a bit ... too permissive IMHO.

Steps to Reproduce

No response

Screenshots / Logs

No response

What is your OS?

  • MacOS
  • Windows
  • Linux

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions