diff options
author | hut <hut@lepus.uberspace.de> | 2015-03-05 00:07:38 +0100 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2015-03-05 00:08:39 +0100 |
commit | dccce1ef1d094cf5260b1f19a6a742d95014e779 (patch) | |
tree | 0741bd57ead6a87fdbb7904ee7a5359f1061a888 | |
parent | 16edaeb0cfefc75d3d97cfcd7f60cc1270a93590 (diff) | |
download | ranger-dccce1ef1d094cf5260b1f19a6a742d95014e779.tar.gz |
core.actions: create multi-level directories with :mkdir
Thanks to @randynobx for suggesting it. See Github issue #238.
-rw-r--r-- | ranger/core/actions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 1167dab5..63c91bcc 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -1290,7 +1290,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): def mkdir(self, name): try: - os.mkdir(os.path.join(self.thisdir.path, name)) + os.mkdirs(os.path.join(self.thisdir.path, name)) except OSError as err: self.notify(err) |