Lines Matching refs:os
27 import os
30 msvcrt.setmode (0, os.O_BINARY) # stdin = 0
31 msvcrt.setmode (1, os.O_BINARY) # stdout = 1
47 for someObject in os.listdir(serverPath):
49 if os.path.isdir(someObjectPath):
66 for someObject in os.listdir(serverPath):
68 if os.path.isdir(someObjectPath):
72 elif os.path.isfile(someObjectPath):
73 size = os.path.getsize(someObjectPath)
76 os.path.getsize(someObjectPath)
113 oldumask = os.umask(0)
114 os.makedirs(folderPath,mode=0755)
115 os.umask( oldumask )
154 newFilePath = os.path.join (currentFolderPath,newFileName)
155 if os.path.exists(newFilePath):
170 if os.path.exists ( newFilePath ):
171 oldumask = os.umask(0)
172 os.chmod( newFilePath, 0755 )
173 os.umask( oldumask )