diff options
author | Nikolay Puzanov <punzik@gmail.com> | 2015-01-28 13:49:53 +0300 |
---|---|---|
committer | Nikolay Puzanov <punzik@gmail.com> | 2015-01-28 13:49:53 +0300 |
commit | eb2c650f789295924b214f8358e94aa4156ddd32 (patch) | |
tree | 9e8007a38b5efa8e3732f090b919f44f1d332a49 | |
parent | 241eb4d4f52692d228594d2248ae467b0f6ab128 (diff) | |
download | ranger-eb2c650f789295924b214f8358e94aa4156ddd32.tar.gz |
config.commands: added ability to create multilevel directories (as mkdir -p 1/2/3)
-rw-r--r-- | ranger/config/commands.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py index c02a30c3..78e6fe8f 100644 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -607,11 +607,11 @@ class mkdir(Command): def execute(self): from os.path import join, expanduser, lexists - from os import mkdir + from os import makedirs dirname = join(self.fm.thisdir.path, expanduser(self.rest(1))) if not lexists(dirname): - mkdir(dirname) + makedirs(dirname) else: self.fm.notify("file/directory exists!", bad=True) |