Re: Copy files to an audio player and playing order

From: "Glenn McIntosh" <neonsignal@memepress.org>
On 27/08/13 22:48, Peter wrote:
for f in `find . -type f`; do cp $f /mnt/$f; done
Apart from not catering for embedded spaces in filenames, the 'find' here won't sort the files into a collation order.
Sorry, I wanted to pipe it to sort (find . -type f | sort) but forgot to write it down. The white space problem was exactly the reason while I did not start it last night. Too late for thinking;-)
Also, there's a program 'fatsort' in the package repositories which will do recursive directory sorting on FAT16 and FAT32, though I haven't tried it myself.
It worked but it does not fix it. It looks as my problem is another file found on the SD card, MSGLIST.MSF. http://www.sony.com.au/support/faq/1187263 "MSGLIST.MSF is a file that contains information such as the order of folders, playback order of audio files and recording date and time. If user connects the recorder to the computer, the MSGLIST.MSF files are displayed but do not delete or change these files. If these files are operated, the saved files may be broken or the recorder may not work correctly." Oh well, I guess because my first copy was random it remembers the unsorted list. I deleted the MSGLIST.MSF file and it was recreated. And now, most likely because the FAT entries are sorted, the order is right. So next time: 1. Copy 2. fatsort before disconnecting. Thanks! Peter
participants (1)
-
Petros