From 57cfa9643c9f4c1b2b8e72d7ade68da23d9693bb Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 6 Aug 2017 20:54:35 +0800 Subject: Fix a bug in clusters/halo.py; Add a comment to utils/io/_create_dir() Signed-off-by: Aaron LI --- fg21sim/utils/io.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fg21sim/utils') diff --git a/fg21sim/utils/io.py b/fg21sim/utils/io.py index 1d30b23..4f05e96 100644 --- a/fg21sim/utils/io.py +++ b/fg21sim/utils/io.py @@ -20,6 +20,10 @@ def _create_dir(filepath): """ Check the existence of the target directory, and create it if necessary. + NOTE + ---- + If the given ``filepath`` is simply the filename without any directory + path, then just returns. """ dirname = os.path.dirname(filepath) # ``dirname == ""`` if ``filepath`` does not contain directory path -- cgit v1.2.2