diff options
Diffstat (limited to 'grs/Seed.py')
-rw-r--r-- | grs/Seed.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/grs/Seed.py b/grs/Seed.py index 0da8354..76034cc 100644 --- a/grs/Seed.py +++ b/grs/Seed.py @@ -50,8 +50,9 @@ class Seed(): if os.path.isdir(directory): shutil.move(directory, '%s.0' % directory) # Now that all prevous directory are out of the way, - # create a new empty directory - os.makedirs(directory) + # create a new empty directory. Fail if the directory + # is still around. + os.makedirs(directory, mode=0o755, exist_ok=False) # Download a stage tarball if we don't have one if not os.path.isfile(self.filepath): |