View previous topic :: View next topic |
Author |
Message |
grant123 Veteran
Joined: 23 Mar 2005 Posts: 1080
|
Posted: Wed Aug 22, 2012 8:40 am Post subject: Copying illegal filenames onto FAT32 |
|
|
I get an error when I try to copy files and folders with FAT32-illegal characters onto my Sansa Clip+ flashed with Rockbox. Is there any way to do this without manually changing each filename and folder name? |
|
Back to top |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Wed Aug 22, 2012 8:52 am Post subject: |
|
|
It depends on the program that you use to copy. Some programs have a setting by which they offer to rename the files automatically. If you want to mass rename by yourself, you can make use of something like mmv. _________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
|
grant123 Veteran
Joined: 23 Mar 2005 Posts: 1080
|
Posted: Wed Aug 22, 2012 8:56 am Post subject: |
|
|
Does Thunar have anything like that? |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Wed Aug 22, 2012 6:14 pm Post subject: |
|
|
grant123 ...
The illegal chars probably just need quoting ... you could try something like the following (here assuming there is some pattern to match on '-name' (you could replace this with '-type f' ... for file ... or some other match). Note that ./dest/ is the 'destination'.
Code: | find . -name "*.mp3" -print0 | rsync -av --files-from=- --from0 ./ ./dest/ |
HTH & best ... khay |
|
Back to top |
|
|
avx Advocate
Joined: 21 Jun 2004 Posts: 2152
|
Posted: Wed Aug 22, 2012 10:19 pm Post subject: |
|
|
khayyam wrote: | grant123 ...
The illegal chars probably just need quoting ... | Don't think so, problem would rather be that Windows filesystems don't support characters like / ? < > \ : * | ” in filenames, plus some more which I currently can't remember.
If your player works by reading the tags and you don't care how the files look on your player, you could just use some random ascending order or try a snippet of mine I used for a similar task: https://forums.gentoo.org/viewtopic-t-843389.html (3rd post) _________________ ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>. |
|
Back to top |
|
|
grant123 Veteran
Joined: 23 Mar 2005 Posts: 1080
|
Posted: Thu Aug 23, 2012 6:57 am Post subject: |
|
|
I ended up using picard to rename them. It works great and you can have it replace non-Windows characters automatically. |
|
Back to top |
|
|
|