UdaraJay/Pile

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 root caused it to my locale in Windows being set to en-IN while on my mac it was en-US.

The app seems to use 'default' to pick up whatever is configured in the system.
{11020C04-76D4-40CC-B301-7BC63F2B2F5F}

Trying to see if I can reconfigure this retroactively.

I could make this work. I only had one 2024/Sept folder but nevertheless the steps were:

  1. Quit Pile
  2. Change my language in windows settings to English(United States) from English(India)
  3. Sign out and Sign back in to windows
  4. Replace all occurrences of Sept with Sep (WSL: find . -type f -exec sed -i 's/Sept/Sep/g' {} \;)
  5. Rename the Sept folder to Sep
  6. Relaunch Pile

Closing this!