calkin-kindle-sync
You are doing all of your file operations directly in flash !
Not a great idea for several reasons.
Stage your file operations -
1) Using a size limited, tmpfs backed, file system -
Do all your file operations that you can in this stage.
2) When a file is completely ready -
Transfer it to flash with a single "mv ... ..." command.
I do not see any handling of IFS in the script.
That may well be part of your filename handling problems.
Another thing to consider about the filename handling -
The file will end up on a FAT32 filesystem, with all that implies.
PLUS
You might want to view the options that file system is mounted with in the Kindle, there may also be characterset problems.
|