Skip to content

Commit

Permalink
Fix directory name for window
Browse files Browse the repository at this point in the history
  • Loading branch information
sengkyaut committed May 27, 2023
1 parent cd7536e commit aba1919
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/alibaba.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ def __init__(self, requester, args):

# Create directory to store files
directory = requester.host
# Replace : with _ for window folder name safe
# https://www.ibm.com/docs/en/spectrum-archive-sde/2.4.1.0?topic=tips-file-name-characters
directory = directory.replace(':','_')
if not os.path.exists(directory):
os.makedirs(directory)

Expand Down
3 changes: 3 additions & 0 deletions modules/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ def __init__(self, requester, args):

# Create directory to store files
directory = requester.host
# Replace : with _ for window folder name safe
# https://www.ibm.com/docs/en/spectrum-archive-sde/2.4.1.0?topic=tips-file-name-characters
directory = directory.replace(':','_')
if not os.path.exists(directory):
os.makedirs(directory)

Expand Down
3 changes: 3 additions & 0 deletions modules/digitalocean.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ def __init__(self, requester, args):

# Create directory to store files
directory = requester.host
# Replace : with _ for window folder name safe
# https://www.ibm.com/docs/en/spectrum-archive-sde/2.4.1.0?topic=tips-file-name-characters
directory = directory.replace(':','_')
if not os.path.exists(directory):
os.makedirs(directory)

Expand Down
3 changes: 3 additions & 0 deletions modules/gce.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ def __init__(self, requester, args):

# Create directory to store files
directory = requester.host
# Replace : with _ for window folder name safe
# https://www.ibm.com/docs/en/spectrum-archive-sde/2.4.1.0?topic=tips-file-name-characters
directory = directory.replace(':','_')
if not os.path.exists(directory):
os.makedirs(directory)

Expand Down
3 changes: 3 additions & 0 deletions modules/readfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ def __init__(self, requester, args):

# Create directory to store files
directory = requester.host
# Replace : with _ for window folder name safe
# https://www.ibm.com/docs/en/spectrum-archive-sde/2.4.1.0?topic=tips-file-name-characters
directory = directory.replace(':','_')
if not os.path.exists(directory):
os.makedirs(directory)

Expand Down

0 comments on commit aba1919

Please sign in to comment.