File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/DIRAC/Resources/Storage Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 39
39
from DIRAC .Core .Utilities .File import getSize
40
40
from DIRAC .Core .Utilities .Pfn import pfnparse , pfnunparse
41
41
42
+ # MacOS does not know ECOMM...
43
+ try :
44
+ ECOMM = errno .ECOMM
45
+ except AttributeError :
46
+ ECOMM = 70
47
+
42
48
43
49
class GFAL2_StorageBase (StorageBase ):
44
50
""".. class:: GFAL2_StorageBase
@@ -1118,7 +1124,7 @@ def _createSingleDirectory(self, path):
1118
1124
# encounter ECOMM when creating an existing directory
1119
1125
# This will be fixed in the future versions of DPM,
1120
1126
# but in the meantime, we catch it ourselves.
1121
- if e .code in (errno .EEXIST , errno . ECOMM ):
1127
+ if e .code in (errno .EEXIST , ECOMM ):
1122
1128
log .debug ("Directory already exists" )
1123
1129
return S_OK ()
1124
1130
# any other error: failed to create directory
You can’t perform that action at this time.
0 commit comments