From dccce1ef1d094cf5260b1f19a6a742d95014e779 Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 5 Mar 2015 00:07:38 +0100 Subject: core.actions: create multi-level directories with :mkdir Thanks to @randynobx for suggesting it. See Github issue #238. --- ranger/core/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit 1.4.1-2-gfad0