Merge lp:~facundo/ubuntuone-client/isolate-accessing-functions into lp:ubuntuone-client
Proposed by
Facundo Batista
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Facundo Batista | ||||
Approved revision: | 780 | ||||
Merged at revision: | 787 | ||||
Proposed branch: | lp:~facundo/ubuntuone-client/isolate-accessing-functions | ||||
Merge into: | lp:ubuntuone-client | ||||
Diff against target: |
368 lines (+128/-36) 7 files modified
tests/platform/test_os_helper.py (+76/-7) ubuntuone/platform/linux/__init__.py (+10/-7) ubuntuone/platform/linux/os_helper.py (+13/-0) ubuntuone/syncdaemon/filesystem_manager.py (+12/-11) ubuntuone/syncdaemon/hash_queue.py (+2/-2) ubuntuone/syncdaemon/local_rescan.py (+11/-8) ubuntuone/syncdaemon/sync.py (+4/-1) |
||||
To merge this branch: | bzr merge lp:~facundo/ubuntuone-client/isolate-accessing-functions | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guillermo Gonzalez | Approve | ||
Manuel de la Peña (community) | Approve | ||
Review via email: mp+44222@code.launchpad.net |
Commit message
Finish separating all user files access.
Description of the change
Finish separating all user files access.
As part of the plan to get all paths as Unicode internally, this branch isolates *everything* that touches user files into separated functions. This do not include syncdaemon controlled paths (for example, the file of version number for FSM, or the directory where the metadata is stored).
So, please be sure that nothing is missing in this regard while reviewing.
To post a comment you must log in.
Hi,
Only a few questions/comments:
1) What do you think about changing the name of the access function, to something more explicit e.g: is_readeable or can_read or...you get the idea ;-)
2) The stat_path is using os.lstat (in linux) but it's used to replace calls to os.stat, e.g: in the before the hashing loop in ubuntuone/ syncdaemon/ hash_queue. py (and also in local rescan). Is this change ok? should be using lstat or stat?
Beside those two issues, looks really good.