Created
February 23, 2019 00:37
-
-
Save czekaj/b0906c41ee3883d83e2ce24443836dd6 to your computer and use it in GitHub Desktop.
Synology NAS has filename limits for encrypted shares. If the name of a file has more than 143 characters it will fail the write operation. This short script will let you find all these files.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find . -maxdepth 15 | perl -nle'print if m{\/[^\/]{143,}[^\/]}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment