Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about filemtime

Read more about filemtime

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - filemtime

Get the mtime of a symlink and not its target in Python

In Python (and Python2) on macOS, when I use os.path.getmtime('/path/to/a/symlink') I get the modification time of the symlink's target. - How do I get instead the modification time of the symlink it...
test-img

halloleo

python

symlink

filemtime

Votes: 0

Answers: 1

Latest Answer

As @LeiYang hinted in a comment, use os.lstat instead. However, the result is not an mtime float, but rather a stat_result structure. How to extract the mtime information see stat — Interpreting stat(...
test-img

halloleo

Linux kernel 5.4 how to change code that modifies status change time of a file?

I've found Setting creation or change timestamps, I want to try kernel modification path from the linked answer: https://stackoverflow.com/a/17066309/14557599. However, the answer is 8 years old and a...
test-img

Martian2020

linux

kernel

filemtime

Votes: 0

Answers: 1

Latest Answer

I've tried grep: ~/Downloads/linux-5.15.12$ find . -name '*.c' -type f -exec bash -c 'grep " notify_change(" {} && ls -l {} && echo' \; I found the code where one could have...
test-img

Martian2020

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved