Skip to content

Commit d682995

Browse files
committed
isdir -> exists
1 parent 7f02e35 commit d682995

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwltool/docker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def append_volume(runtime, source, target, writable=False):
237237
"--mount={}".format(mount_arg)
238238
)
239239
# Unlike "--volume", "--mount" will fail if the volume doesn't already exist.
240-
if not os.path.isdir(source):
240+
if not os.path.exists(source):
241241
os.mkdir(source)
242242

243243
def add_file_or_directory_volume(

0 commit comments

Comments
 (0)