January 2015
Intermediate to advanced
212 pages
4h 22m
English
In this section, we will use the Command pattern to implement the most basic file utilities:
We will not implement these utilities from scratch, since Python already offers good implementations of them in the os module. What we want is to add an extra abstraction level on top of them so that they can be treated as commands. By doing this, we get all the advantages offered by commands.
The following use case diagram shows the supported operations that a user can execute. From the operations shown, renaming a file and creating a file support undo. Deleting a file and reading the contents of a file do no support undo. Undo ...
Read now
Unlock full access