Today I was testing the new "Copy All Data" feture in TimeLapse and I realized that I could not copy the data to a flash drive. This was a major problem because the purpose of the "Copy All Data" button was to copy the data to a flash drive to get it off the XO. I figured out the problem was a bug in shutil when copying ext3 filesystem to fat32 filesystem. To fix the problem I replaced this:
shutil.copytree("data", filepath)
I replaced it with this:
subprocess.check_call(['cp', '-R', 'data', filepath])
No comments:
Post a Comment