Page 1 of 1

Sync Profile - timestamp filename slashes interpreted as folders delimiters [#20121]

Posted: Tue Jun 27, 2023 9:59 pm
by MattTown
Hi,

This is just a warning about what might be unintended behaviour about the Timestamp file attribute in playlist filename patterns. If it is intended then this a Gotcha and a warning to users might be appropriate.

I use sync to write playlist song files to a USB stick. In the filename pattern (Sync > USB device > Sync Profile > File Locations > Music)I had tried to use the Timestamp to make filenames unique (long story) and found by accident that the forward slash characters in the timestamp get interpreted as folder delmiters.

For example, the filename pattern of "... <Title> - <Timestamp>", where Timestamp resolves as "27/06/2023 10:14 AM", gets written to the USB stick as
"... Spanish Dancer - 27
\06
\2023 10 14 AM.mp3"
So the "/" in the timestamp text gets turned into folders "\". Also it appears that if there was a ":" in the time string then it gets converted into a space.

Would it be possible for Timestamp to get recoded so as to not have folder characters in its text string, or is there some way for me to configure the timestamp value to not have slashes in it?

Thanks

Matt

Re: Sync Profile - timestamp filename slashes interpreted as folders delimiters

Posted: Tue Jun 27, 2023 11:42 pm
by Lowlander
You can use <AutoNumber> for a unique value on Sync.

<Timestamp> added as: https://www.ventismedia.com/mantis/view.php?id=20121

Re: Sync Profile - timestamp filename slashes interpreted as folders delimiters [#20121]

Posted: Wed Jun 28, 2023 12:05 am
by MattTown
Thanks!