ciur / papermerge

Open Source Document Management System for Digital Archives (Scanned Documents)
https://papermerge.com
Apache License 2.0
2.45k stars 261 forks source link

Please ignore dot files from macOS #363

Open URBANsUNITED opened 3 years ago

URBANsUNITED commented 3 years ago

Hi!

I searched for the reason why I couldn't import files sent by Samba from my Mac anymore. Long time i believed it was a bug coming from Papermerge code - but it looked like no one else had this issue. Then I believed it was a file permission error. Both wrong!

It were the dot files coming from macOS. like ._DS_Store or similar: Bildschirmfoto 2021-04-09 um 17 50 25

After deleting these files in my import dir, the import job worked flawless! I searched for an easy fix on my side and found it:

add to your samba config on your server (/etc/samba/smb.conf) following line:

*veto files = /._/.DS_Store/**

I've added this to my OMV server inside the share directly under advanced options: Bildschirmfoto 2021-04-09 um 17 56 56

after restarting the samba service, these files are history on your next file transfers using samba :)

It would be great if you could implement an ignore function on the import dir, based on above logic for these files please?!?

Thanks alot

URBANsUNITED

ciur commented 3 years ago

@URBANsUNITED, interesting use case. Ignoring files in monitoring folder is not that difficult to implement. Thanks for opening this issue!