mac and windows client have different folder naming
cheerioskun opened this issue · 4 comments
Expected Behavior
The folder structure and names of the folder created should have been same across clients on different OSes
Current Behavior
The mac client has folder names for month with three chars eg. Sep, whereas the windows client has four chars eg. Sept
Context
I was trying to setup some syncing for the two pile folders between my mac and windows PC and all other properties of the file hierarchy lend themselves to an easy rsync/rclone. The folders being named different makes this approach infeasible for me.
- App version : 0.9.9 on both
- Operating System and version : Windows 11 and macOS Sonoma
This stems from using toLocaleString
with { month: 'short' }
which seems to have differing behaviour from mac to windows. One fix would be use { month: 'long' }
. I am not sure where all the change would be required but I suppose it would be in both the save() function in file handler and in the loader function (haven't seen this yet).
Ideally we would also make the upgrade seamless by migrating/renaming folders named the old way.
I could make this work. I only had one 2024/Sept folder but nevertheless the steps were:
- Quit Pile
- Change my language in windows settings to English(United States) from English(India)
- Sign out and Sign back in to windows
- Replace all occurrences of Sept with Sep (WSL:
find . -type f -exec sed -i 's/Sept/Sep/g' {} \;
) - Rename the Sept folder to Sep
- Relaunch Pile
Closing this!