Request: Use safe characters in default filenames for Little Snitch backups

General discussions about Little Snitch
mcgroarty
Posts: 16
Joined: Sun Apr 13, 2014 1:02 am

Request: Use safe characters in default filenames for Little Snitch backups

Postby mcgroarty » Sun Dec 30, 2018 9:42 pm

As a US user:

* Open Little Snitch rules
* Select File->Create Backup

Observe:

* Default filename contains forward slashes: "Little Snitch - 12/30/18.xpl"

Expected:

* Default filename contains only safe characters

Notes:

I suspect the / date delimiter appears because Little Snitch uses region settings, and the US region specifies a /. If so, please consider ISO-8601 dates with hyphens instead of regional dates. eg., 2018-12-30.

As an added benefit, ISO-8601 dates sort lexicographically. That is, when sorting by filename the dates also sort as oldest-to-newest because YYYY-MM-DD is ordered major-to-minor.

fclout
Posts: 2
Joined: Mon Dec 31, 2018 6:34 am

Re: Request: Use safe characters in default filenames for Little Snitch backups

Postby fclout » Mon Dec 31, 2018 6:51 am

I agree with the superior character of ISO 8601 dates, but as an artifact of how paths worked in pre-UNIX Mac OS, forward slashes on macOS are not unsafe characters. Forward slashes are a trick played on you by the UI layer: their file system representation is a colon, which you can observe using the Terminal. The same UI layer will not let you create a path that contains a colon.

mcgroarty
Posts: 16
Joined: Sun Apr 13, 2014 1:02 am

Re: Request: Use safe characters in default filenames for Little Snitch backups

Postby mcgroarty » Tue Jan 01, 2019 12:41 am

While that's interesting, I hope you can anticipate the problem of introducing colon characters as well. Many of us back up to a file server that's shared with Windows machines. :)


Return to “Little Snitch General”

Who is online

Users browsing this forum: No registered users and 4 guests