• Home
  • Raw
  • Download

Lines Matching refs:pathName

164     pathName = os.path.join(path,fileName)
172 if os.path.exists(pathName) is not True:
174 return 0,mode, pathName, errorCode
176 if os.path.isdir(pathName) and (fileAttributes & smb.ATTR_DIRECTORY) == 0:
179 return 0, mode, pathName, errorCode
191 fid = os.open(pathName, mode)
193 LOG.error("openFile: %s,%s" % (pathName, mode) ,e)
197 return fid, mode, pathName, errorCode
212 pathName = os.path.join(path,fileName)
213 fileSize = os.path.getsize(pathName)
214 (mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime) = os.stat(pathName)
243 if os.path.isdir(pathName):
245 if os.path.isfile(pathName):
267 pathName = os.path.join(path,fileName)
270 if pathName.find('*') == -1 and pathName.find('?') == -1:
274 pattern = os.path.basename(pathName)
275 dirName = os.path.dirname(pathName)
293 if os.path.exists(pathName):
294 files.append(pathName)
388 pathName = os.path.join(path,fileName)
389 if os.path.exists(pathName):
390 (mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime) = os.stat(pathName)
397 if os.path.isdir(pathName):
405 if os.path.isdir(pathName):
415 if os.path.isdir(pathName):
421 if os.path.isdir(pathName):
434 if os.path.isdir(pathName):
582 pathName = os.path.join(path,fileName)
583 if os.path.exists(pathName):
599 os.utime(pathName,(atime,mtime))
1417 pathName = os.path.join(path,fileName)
1418 if os.path.exists(pathName):
1425 os.mkdir(pathName)
1510 pathName = os.path.join(path,fileName)
1511 if os.path.exists(pathName) is not True:
1518 os.remove(pathName)
1554 pathName = os.path.join(path,fileName)
1555 if os.path.exists(pathName) is not True:
1562 os.rmdir(pathName)
1865 pathName = connData['OpenedFiles'][queryInformation2['Fid']]['FileName']
1867 (mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime) = os.stat(pathName)
1877 if os.path.isdir(pathName):
1879 if os.path.isfile(pathName):
1932 pathName = os.path.join(path,fileName)
1941 if os.path.exists(pathName) is True:
1946 if os.path.exists(pathName) is True:
1951 if os.path.exists(pathName) is True:
1956 …if os.path.exists(pathName) is not True and (unicode(pathName) in smbServer.getRegisteredNamedPipe…
1976 os.mkdir(pathName)
1979 … smbServer.log("NTCreateAndX: %s,%s,%s" % (pathName,mode,e),logging.ERROR)
1985 if os.path.isdir(pathName) is True:
1993 if os.path.isdir(pathName) and sys.platform == 'win32':
1998 if unicode(pathName) in smbServer.getRegisteredNamedPipes():
2001 sock.connect(smbServer.getRegisteredNamedPipes()[unicode(pathName)])
2003 fid = os.open(pathName, mode)
2005 smbServer.log("NTCreateAndX: %s,%s,%s" % (pathName,mode,e),logging.ERROR)
2032 if os.path.isdir(pathName):
2039 … respInfo, errorCode = queryPathInformation('',pathName,level= smb.SMB_QUERY_FILE_ALL_INFO)
2057 connData['OpenedFiles'][fakefid]['FileName'] = pathName
2085 openedFile, mode, pathName, errorCode = openFile(path,
2118 connData['OpenedFiles'][fid]['FileName'] = pathName
2805 pathName = os.path.join(path,fileName)
2814 if os.path.exists(pathName) is True:
2819 if os.path.exists(pathName) is True:
2824 if os.path.exists(pathName) is True:
2829 …if os.path.exists(pathName) is not True and (unicode(pathName) in smbServer.getRegisteredNamedPipe…
2849 os.mkdir(pathName)
2852 … smbServer.log("SMB2_CREATE: %s,%s,%s" % (pathName,mode,e),logging.ERROR)
2858 if os.path.isdir(pathName) is True:
2866 if os.path.isdir(pathName) and sys.platform == 'win32':
2871 if unicode(pathName) in smbServer.getRegisteredNamedPipes():
2874 sock.connect(smbServer.getRegisteredNamedPipes()[unicode(pathName)])
2876 fid = os.open(pathName, mode)
2878 smbServer.log("SMB2_CREATE: %s,%s,%s" % (pathName,mode,e),logging.ERROR)
2902 if os.path.isdir(pathName):
2907 … respInfo, errorCode = queryPathInformation('',pathName,level= smb.SMB_QUERY_FILE_ALL_INFO)
2922 connData['OpenedFiles'][fakefid]['FileName'] = pathName
2958 pathName = connData['OpenedFiles'][fileID]['FileName']
2965 …oRecord, errorCode = queryFileInformation(os.path.dirname(pathName), os.path.basename(pathName), s…
2973 if os.path.isdir(pathName):
3074 pathName = connData['OpenedFiles'][fileID]['FileName']
3098 os.utime(pathName,(atime,mtime))
3111 os.rename(pathName,newPathName)
3323pathName = os.path.join(os.path.normpath(connData['OpenedFiles'][fileID]['FileName']),pattern)
3324 searchResult, searchCount, errorCode = findFirst2(os.path.dirname(pathName),
3325 os.path.basename(pathName),