Skip to content

Commit

Permalink
add make_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
nsheff committed Jul 1, 2016
1 parent 87e4ad0 commit 069a97d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pypiper/ngstk.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,19 @@ def __init__(self, config_file=None, pm=None):
if hasattr(pm.config, "parameters"):
self.parameters = self.pm.config.parameters

def make_sure_path_exists(self, path):
def make_dir(self, path):
try:
os.makedirs(path)
except OSError as exception:
if exception.errno != errno.EEXIST:
raise


def make_sure_path_exists(self, path):
""" Alias for make_dir """
self.make_dir(path)


def get_file_size(self, filenames):
"""
Get size of all files in string (space-separated) in megabytes (Mb).
Expand Down

0 comments on commit 069a97d

Please sign in to comment.