-
Notifications
You must be signed in to change notification settings - Fork 167
Application breaks when run on linux and it tries to create links on NTFS-like target FS #425
Comments
--use-hardlinks will use hardlinks instead of symlinks I'm not convinced these will help though. If you are using Windows I say to |
I just checked in the code and it looks like using --album MyAlbumName --skip-albums will:
|
@mucst does the above work for your use case? |
Hey @gilesknap , thanks for the reply. I don't think hard links could ever help since windows does not have anything similar. As a first quick solution, I "patched" the script by replacing line 436 with a
So on my part this issue is solved, however as project owner you gotta decide how you tackle the above issues, if you want to in the first place. Final thought: with current lineup, how can this application run on Windows (if not containerized)? 🤔 Because as I said, according to google shortcuts are not created with a plain PS. Because I am lazy to experiment or research properly, I asked ChatGPT:
Answer: Windows does support a type of symbolic link called "junction points", but they have different semantics than Unix-style symbolic links, and they are not created using the os.symlink() method. Instead, you can create junction points using the os.system() method to run the mklink command from the Windows command prompt. Here's an example of creating a junction point using mklink:
In the example above, |
Thanks for the detailed report. The intention of Re symlinks on Windows. I do have windows users of this tool and it does work if you enable symlinks in the policy manager as documented here https://gilesknap.github.io/gphotos-sync/main/how-to/windows.html#symlinks. Also the CI tests in Github actions run against a WIndows VM (but I don't know for sure that it uses NTFS). I assume therefore that os.symlink does work on modern Windows versions at least. Can't remember the journey to make this tool work on Windows but I did testing on my linux/Windows dual boot. |
Right. I'm surprised about the ability to enable symlinks on windows, but that explains. I'm sure that the VMs run NTFS or alike filesystem because windows does not support ext fs of any kind. But ok, let's leave it at that. Thanks for the clarification. |
leaving this open - TODO look at behaviour of --skip-albums with and without --album |
closing as I'm tracking this in #428 |
I'm running the application in docker (today's latest version: 3.1.2), git revision a631449. Host Device is a Raspberry PI 2, attached an exFat filesystem external HDD.
When I try to run the application, it fails with:
Apparently it tried to create a symlink on the storage which failed. Is there a chance to avoid this error by for example omitting symlink creation? I don't need it for my usecase anyway. I however want to synchronize a specific album.
The text was updated successfully, but these errors were encountered: