Check for write and execute access to scratch directory
Description
Changes os.path.isdir(path) checks to os.access(path, os.W_OK | os.X_OK), which returns True only if the path exists, is writable, and executable.
This is an issue on some clusters, where the /scratch folder exists globally, but was only writeable under /scrach/groupname
Types of changes
- Bug fix (non-breaking change which fixes an issue)
Edited by Jógvan Magnus Haugaard Olsen