Merge lp:~mandel/ubuntuone-windows-installer/migrate-data into lp:ubuntuone-windows-installer
Proposed by
Manuel de la Peña
Status: | Merged |
---|---|
Approved by: | Manuel de la Peña |
Approved revision: | 93 |
Merged at revision: | 81 |
Proposed branch: | lp:~mandel/ubuntuone-windows-installer/migrate-data |
Merge into: | lp:ubuntuone-windows-installer |
Prerequisite: | lp:~mandel/ubuntuone-windows-installer/uninstall-old-app |
Diff against target: | 0 lines |
To merge this branch: | bzr merge lp:~mandel/ubuntuone-windows-installer/migrate-data |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Natalia Bidart (community) | Approve | ||
Diego Sarmentero (community) | Approve | ||
Review via email:
|
Commit message
Provides a function that allows to migrate the data that was downloed by the previous beta.
Description of the change
Provides a function that allows to migrate the data that was downloed by the previous beta.
To post a comment you must log in.
A couple of fixes:
* Instead of importing from windows, which should be a 'hidden' module:
from ubuntuone. platform. windows import recursive_move, listdir, tools
import from platform directly:
from ubuntuone.platform import recursive_move, listdir, tools
* Can you please remove the duplication of the code calculating the path to the Documents folder? can you replace the logic in migrate_old_data() with a call to get_special_ folders( )[0]?
* I think the migration of old data should remove the old metadata. Can we do that?
* Also, the user should be prompt to confirm if s/he wants to the migration to happen, no?
* If I understand the code correctly, you're overwriting all the files inside the new location. We should check if we're about to overwrite a file and handle that case gracefully (probably adding a suffix to the old file, we should ask Lisette).