Home
last modified time | relevance | path

Searched refs:follow_symlinks (Results 1 – 2 of 2) sorted by relevance

/development/vndk/tools/definition-tool/tests/
Dtest_scandir.py30 self.assertFalse(ent.is_file(follow_symlinks=False))
32 self.assertFalse(ent.is_dir(follow_symlinks=False))
36 self.assertFalse(ent.is_file(follow_symlinks=False))
38 self.assertFalse(ent.is_dir(follow_symlinks=False))
42 self.assertFalse(ent.is_file(follow_symlinks=False))
44 self.assertFalse(ent.is_dir(follow_symlinks=False))
/development/vndk/tools/definition-tool/
Dvndk_definition_tool.py120 def _stat_impl(path, follow_symlinks): argument
121 return os.stat(path) if follow_symlinks else os.lstat(path)
123 def stat(self, follow_symlinks=True): argument
124 attr = '_stat' if follow_symlinks else '_lstat'
127 stat_res = self._stat_impl(self.path, follow_symlinks)
131 def is_dir(self, follow_symlinks=True): argument
133 return stat.S_ISDIR(self.stat(follow_symlinks).st_mode)
137 def is_file(self, follow_symlinks=True): argument
139 return stat.S_ISREG(self.stat(follow_symlinks).st_mode)
144 return stat.S_ISLNK(self.stat(follow_symlinks=False).st_mode)