-1

utime only modifies accessed and modified times. Is there a way to do modify the creation/birth time with Python? Filesystem is ZFS if that matters.

martineau
  • 119,623
  • 25
  • 170
  • 301
churchill
  • 109
  • 6
  • [How can I set file creation times in ZFS?](https://stackoverflow.com/q/29906359/5160244) is somewhat related. – Velvel Mar 06 '22 at 00:37

1 Answers1

0

You want touch functionality, and it's available in the os module using utime().

See https://docs.python.org/3.8/library/os.html#os.utime, and also Implement touch using Python?

James McPherson
  • 2,476
  • 1
  • 12
  • 16