---
source: crates/ruff_linter/src/rules/flake8_use_pathlib/mod.rs
---
PTH205 `os.path.getctime` should be replaced by `Path.stat().st_ctime`
 --> PTH205.py:6:1
  |
6 | os.path.getctime("filename")
  | ^^^^^^^^^^^^^^^^
7 | os.path.getctime(b"filename")
8 | os.path.getctime(Path("filename"))
  |
help: Replace with `Path.stat(...).st_ctime`

PTH205 `os.path.getctime` should be replaced by `Path.stat().st_ctime`
 --> PTH205.py:7:1
  |
6 | os.path.getctime("filename")
7 | os.path.getctime(b"filename")
  | ^^^^^^^^^^^^^^^^
8 | os.path.getctime(Path("filename"))
  |
help: Replace with `Path.stat(...).st_ctime`

PTH205 `os.path.getctime` should be replaced by `Path.stat().st_ctime`
  --> PTH205.py:8:1
   |
 6 | os.path.getctime("filename")
 7 | os.path.getctime(b"filename")
 8 | os.path.getctime(Path("filename"))
   | ^^^^^^^^^^^^^^^^
 9 |
10 | getctime("filename")
   |
help: Replace with `Path.stat(...).st_ctime`

PTH205 `os.path.getctime` should be replaced by `Path.stat().st_ctime`
  --> PTH205.py:10:1
   |
 8 | os.path.getctime(Path("filename"))
 9 |
10 | getctime("filename")
   | ^^^^^^^^
11 | getctime(b"filename")
12 | getctime(Path("filename"))
   |
help: Replace with `Path.stat(...).st_ctime`

PTH205 `os.path.getctime` should be replaced by `Path.stat().st_ctime`
  --> PTH205.py:11:1
   |
10 | getctime("filename")
11 | getctime(b"filename")
   | ^^^^^^^^
12 | getctime(Path("filename"))
   |
help: Replace with `Path.stat(...).st_ctime`

PTH205 `os.path.getctime` should be replaced by `Path.stat().st_ctime`
  --> PTH205.py:12:1
   |
10 | getctime("filename")
11 | getctime(b"filename")
12 | getctime(Path("filename"))
   | ^^^^^^^^
   |
help: Replace with `Path.stat(...).st_ctime`
