Open GChalony opened 4 months ago
Happy to accept PRs. There is supposed to be code to handle invalid characters in filenames, this includes a different regex for windows and linux. Maybe there is an issue with identifying which filesystem is in use?
Hi ! Sorry for the late reply, I just had time to dig a little more.
As you suggested, the filesystem is not detected as NTFS. psutil.disk_partitions()
describes it as fuseblk
, which does not help much in deciding what actual filesystem it is. df -T
also reports fuseblk
. After a bit of digging, it appears that lsblk --fs
will indeed print ntfs
, but I havent found a "pythonic" way to do it. Do you have any idea ?
At least for my specific issue, I can simply run it with --ntfs
to bypass the problem.
I think I must have given up on this when I looked at it - bear in mind that the solution needs to work on windows and linux.
My simple workaround was adding the --ntfs
flag.
gphotos-sync
is crashing with an OsError when trying to create an album folder with a<
in its name. Would it be possible to escape special characters in album (and photos?) names, so that the sync can be performed ? Alternatively, can we at least catch the error and skip this folder, rather than interrupting the sync altogether ?Logs
I could write the PR if that's accepted