stash icon indicating copy to clipboard operation
stash copied to clipboard

Synology NAS and folders table

Open ghost opened this issue 3 years ago • 4 comments

Describe the bug With the introduction of the 'folders' table in 0.17 (I believe), all folders under the root are added. Synology makes hidden folders called @eaDir in any folder that contains one or more videos and inside that folder in a folder with the name of every video. So if you have a folder with 100 videos in it, you get one @eaDir folder that has 100 folders in it, each named with the name of a video. There is nothing in here that Stash needs or can use and no way for the user to turn this off on Synology's end. They are only hidden in that browsing in the Synology UI they will not be displayed but they are displayed through most other protocols.

To Reproduce Steps to reproduce the behavior:

  1. Buy the most expensive Synology NAS and max out the hard drives. (optional)
  2. Run Stash via Docker on a Synology machine.
  3. Scan your files and browse the 'folders' table.

Expected behavior It doesn't technically hurt anything, but there will be one useless entry per video a user has on Synology systems. This could impact performance long term, although I have no clue by how much. Could be negligible.

Stash Version: (from Settings -> About): v0.17.2-31-gce17230c (should be any 0.17 version though)

Additional context I did add .*@eaDir.* to both the video and gallery ignore regex and ran a clean which removed all these entries.

If you have two videos:

/content/A.mp4 /content/B.mp4

You also get the files: /content/@eaDir/A.mp4/SYNOINDEX_MEDIA_INFO /content/@eaDir/B.mp4/SYNOINDEX_MEDIA_INFO

which adds the following to the folders table: /content/@eaDir/A.mp4/ /content/@eaDir/B.mp4/

ghost avatar Nov 22 '22 03:11 ghost

I've had them showing up in Galleries (I used to use DSVideo which created thumbnails) ever since I started using Stash and could not figure out the regex to ignore them. Thank you for posting that context!!!

Otherwise yes it would be nice to ignore them by default.

LeGrosFromage avatar Nov 22 '22 15:11 LeGrosFromage

I too run Stash on Synology NAS so if you need someone to test this issue out with let me know on Discord (have just returned after a long long absence!)

VonTittyslappen avatar Nov 15 '23 06:11 VonTittyslappen

Stash should probably not be storing folder information for folders containing no relevant files.

WithoutPants avatar Feb 13 '24 02:02 WithoutPants

even if i add a regex to ignore these folders ".@eaDir." in Library, they still throw these error messages during a clean generated files operation (because these eaDIRs exist in the /generated subdir as well. any chance we can add a global ignore option? thanks!

2t9z16yo avatar May 29 '24 04:05 2t9z16yo