Mercurial > hgrepos > Python > apps > py-cutils
comparison cutils/util/walk.py @ 265:188f448ab5e9
FIX: typo in docs
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 17 Feb 2025 00:12:33 +0100 |
| parents | ca9d5a0dc9bb |
| children | 0add8276e6b8 |
comparison
equal
deleted
inserted
replaced
| 264:c657828cf62f | 265:188f448ab5e9 |
|---|---|
| 265 w._stat_result = entry.stat(follow_symlinks=True) | 265 w._stat_result = entry.stat(follow_symlinks=True) |
| 266 return w | 266 return w |
| 267 | 267 |
| 268 @classmethod | 268 @classmethod |
| 269 def from_path_name(cls_, path, name, _do_stat=True): | 269 def from_path_name(cls_, path, name, _do_stat=True): |
| 270 """`_nostat` is to be used only for testing purposes""" | 270 """`_do_stat` is to be used only for testing purposes""" |
| 271 w = cls_(name, os.path.join(path, name)) | 271 w = cls_(name, os.path.join(path, name)) |
| 272 try: | 272 try: |
| 273 w._is_dir = os.path.isdir(w._path) | 273 w._is_dir = os.path.isdir(w._path) |
| 274 except OSError: | 274 except OSError: |
| 275 # | 275 # |
