Closed felix-h-kong closed 6 months ago
Hi @felix-h-kong that does look like the folder name is illegal in your filesystem. I go to lots of trouble to try and make filenames and folder names that are legal in the code. I can't see what the problem is with that folder name, ext4 would normally allow this:
[hgv27681@pc0116 ~]$ cd /tmp
[hgv27681@pc0116 tmp]$ mkdir -p 'media/felix/extreme-ssd/google-photos-sync/felix/albums/2019/1219 3 years since...'
[hgv27681@pc0116 tmp]$ ls media/felix/extreme-ssd/google-photos-sync/felix/albums/2019/1219\ 3\ years\ since.../
[hgv27681@pc0116 tmp]$
Do you know what filesystem your extreme-ssd is formatted with? gphotos-sync tries to detect what is legal on the drive and change filenames to match but can sometimes get it wrong.
If your filesystem is NTFS that might explain it because I think ... might be illegal. You could try passing the command line argument --ntfs
which will force use of stricter ntfs filenaming.
Oh, you are absolutely right - I forgot, it is NTFS, not ext4 as i'm usually using. I will try with --ntfs
and report back.
Yep, gphotos-sync . --ntfs
is exactly what I needed. Should've read the manual more carefully haha. Thanks!
Thanks for updating. You are not completely to blame as the code is supposed to detect NTFS, but I must have put that option in due to that check being imperfect.
Hi,
I'm running into what I think is a syntax error when
gphotos-sync
tries to sync folders named something like "3 years ago", which are auto-generated folders by Google. This is what I get when i run `gphotos-sync:Maybe stating the obvious, something to do with the spaces in "3 years since". As a user, I feel like it'd make sense if those got omitted (maybe with some prints to stdout saying "ignoring folder named
X years since
"), since there are no new photos in those. It would be kinda cool if it those "X years since" actually did get synced, and got populated with symlinks to the correct photos within my local directories, but maybe not really worths pending the effort on.I'm on a raspberry pi 4B on raspbian, with gphotos-sync running in a venv.