Lines Matching refs:Root
322 # @param Root The root directory of path relative to
331 def __init__(self, Root):
332 self._Root = Root
333 for F in os.listdir(Root):
393 # @param Root: Root dir
398 def GetFiles(Root, SkipList=None, FullPath = True):
399 OriPath = Root
401 for Root, Dirs, Files in os.walk(Root):
408 File = os.path.normpath(os.path.join(Root, File))
1333 def __init__(self, File='', Root='', AlterRoot='', Type='', IsBinary=False,
1338 self.Root = ''
1341 self.Root = str(Root)
1345 if self.Root:
1346 self.Path = os.path.normpath(os.path.join(self.Root, self.File))
1347 self.Root = os.path.normpath(CommonPath([self.Root, self.Path]))
1349 if self.Root[-1] == ':':
1350 self.Root += os.path.sep
1352 if self.Root[-1] == os.path.sep:
1353 self.File = self.Path[len(self.Root):]
1355 self.File = self.Path[len(self.Root)+1:]
1362 if self.Root:
1364 self.Dir = os.path.join(self.Root, self.SubDir)
1366 self.Dir = self.Root
1449 RealFile, RealRoot = RealPath2(self.File, self.Root, self.AlterRoot)
1454 elif self.Root:
1455 RealFile = os.path.join(self.Root, self.File)
1460 if RealRoot != self.Root or RealFile != self.File:
1461 if CaseSensitive and (RealFile != self.File or (RealRoot != self.Root and RealRoot != self.AlterRoot)):
1472 self.Root = RealRoot