Opened at 2009-02-23T02:27:25Z
Last modified at 2010-11-21T20:19:15Z
#640 new enhancement
Cli fs operations refactoring — at Initial Version
Reported by: | azazel | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | undecided |
Component: | code-frontend-cli | Version: | 1.3.0 |
Keywords: | cleanup | Cc: | |
Launchpad Bug: |
Description
Actually, almost each of the cli commands implement their own logic to do fs operations, both local-side and tahoe-side. I think that most of the command modules should be refactored to use common code. This is for many reasons among:
- remove duplication;
- code comprehensibility and normalization of behavior;
- spread avaiability of improvements found in latter commands (backup) to other commands;
- easier implementation of new features like non-ascii charset handling for filenames;
- better handling of logging?
The steps in order to do that (that i can see):
- Recognize the needs of each command in term of fs manipulation;
- Look at the best implementation available and eventually improve it;
- maybe design a minimal layer that will help handling alias/path/cap based opetations and other cases.
Other interesting points to discuss:
- See if a replacement of httplib with twisted can help in parallelizing and increasing the bandwidth usage.
Let's discuss it!
Note: See
TracTickets for help on using
tickets.