cryptomator / cryptofs

Java Filesystem Provider with integrated encryption
GNU Affero General Public License v3.0
94 stars 35 forks source link

More dirIdCheck results #138

Closed infeo closed 2 years ago

infeo commented 2 years ago

This PR adds two new results to the DirIdCheck:

  1. LooseDirIdFile: Every file named dir.c9r which parent does not end with .c9r. The fix is to remove the file.
  2. MissingDirIdFile: Every c9r directory, which does not contain a dir.c9r file The fix is to remove the directory to not hog a name.

The second is especially interesing in combination of the oprhan dir result. The orphaned directory can be recovered and the old c9r dir formerly containing the link file can be removed, such that the user can add the directory at its original location again.

infeo commented 2 years ago

I also renamed some other classes to align those with the naming convention