Searched refs:follow_symlinks (Results 1 – 2 of 2) sorted by relevance
30 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))
120 def _stat_impl(path, follow_symlinks): argument121 return os.stat(path) if follow_symlinks else os.lstat(path)123 def stat(self, follow_symlinks=True): argument124 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): argument133 return stat.S_ISDIR(self.stat(follow_symlinks).st_mode)137 def is_file(self, follow_symlinks=True): argument139 return stat.S_ISREG(self.stat(follow_symlinks).st_mode)144 return stat.S_ISLNK(self.stat(follow_symlinks=False).st_mode)