Permissions issues with zipfile
loial
jldunn2000 at gmail.com
Mon Sep 4 03:30:27 EDT 2017
I am getting a permission issue with the following code
targetdirectory = '/data/upload'
self.ZIPFileName = targetDirectory + os.sep + "MY.ZIP"
zf = zipfile.ZipFile(self.ZIPFileName, mode='w')
[Errno 13] Permission denied: '/data/upload/MY.ZIP'
The target directory is an NFS mounted directory.
I can manually create a file in that directory with no issues using the same user
Any ideas?
Python version is 2.7.10. Platform is Centos 7
More information about the Python-list
mailing list