Relax error checking
Error checking was too stringent and use of list() in exists was a problem if user did not have read and execute access for parent directory. Using stat() instead of list() should fix that issue.
Error checking was too stringent and use of list() in exists was a problem if user did not have read and execute access for parent directory. Using stat() instead of list() should fix that issue.