bzr revid: fp@tinyerp.com-20090205173032-6hos06o1pq1m3ukk
This commit is contained in:
Fabien Pinckaers 2009-02-05 18:30:32 +01:00
parent 96b596ec52
commit 9b4d0613a6
1 changed files with 5 additions and 1 deletions

View File

@ -513,7 +513,11 @@ class document_file(osv.osv):
try:
path = self._get_filestore(cr)
if not os.path.isdir(path):
os.makedirs(path)
try:
os.makedirs(path)
except:
raise except_orm('Permission Denied !', 'You do not permissions to write on the server side.')
flag = None
# This can be improved
for dirs in os.listdir(path):