mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
test if the path/file exists before mkdir
This commit is contained in:
@@ -213,7 +213,8 @@ class JobWrapper( object ):
|
||||
# Create the working directory
|
||||
self.working_directory = \
|
||||
os.path.join( self.app.config.job_working_directory, str( self.job_id ) )
|
||||
os.mkdir( self.working_directory )
|
||||
if not os.path.exists( self.working_directory ):
|
||||
os.mkdir( self.working_directory )
|
||||
# Restore parameters from the database
|
||||
job = model.Job.get( self.job_id )
|
||||
incoming = dict( [ ( p.name, p.value ) for p in job.parameters ] )
|
||||
|
||||
Reference in New Issue
Block a user