Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Simple shell
-
The start of a simple shell for basic file management. Currently supports the following commands (no support for any options at this point):
- ls
- pwd
- cd
- mkdir
- rm (handles both directories and files)
By default, the script tries to protect the user from altering files outside of the Documents directory. To disable these preventative checks, add a setting to the config dict:
config = {'allow_unsafe': True}
-
cool
-
Very nice! I've added some error handling and a cat command:
-
You've got a bug in your do_rm re-implementation, omz
if len(args == 0):
should be
if len(args) == 0:
-
Indeed, I changed my copy ;-)
-
Thanks, fixed.