https://github.com/simsekhalit/mtime-fixer
A tool for fixing inconsistent timestamp metadata (atime, ctime, and mtime).
https://github.com/simsekhalit/mtime-fixer
atime ctime metadata mtime
Last synced: 5 months ago
JSON representation
A tool for fixing inconsistent timestamp metadata (atime, ctime, and mtime).
- Host: GitHub
- URL: https://github.com/simsekhalit/mtime-fixer
- Owner: simsekhalit
- License: mit
- Created: 2022-01-10T20:57:53.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-10T20:59:13.000Z (over 4 years ago)
- Last Synced: 2025-09-22T17:19:28.325Z (8 months ago)
- Topics: atime, ctime, metadata, mtime
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mtime Fixer
Mtime Fixer is a tool for fixing inconsistent timestamp metadata (atime, ctime, and mtime).
Sometimes timestamp metadata of folders are inconsistent with files inside them.
Mtime Fixer is a program for setting mtime (modification time) timestamp of folders according to files inside them.
Additionally, it can set ctime (change time) metadata as the same as mtime as well (with root privileges).
## Requirements
Python >= 3.8 is required. (CPython and PyPy are both supported)
## Installation
Mtime Fixer can be either installed directly via pip:
```shell
pip install mtime-fixer
```
Or it can be installed from the source:
```shell
git clone https://github.com/simsekhalit/mtime-fixer.git
python3 -m pip install ./mtime-fixer
```
## Manual
```
$ python3 -m mtime_fixer --help
usage: mtime-fixer [-h] [-c] [-f] PATH [PATH ...]
A tool for fixing inconsistent timestamp metadata (atime, ctime, and mtime).
positional arguments:
PATH
optional arguments:
-h, --help show this help message and exit
-c, --fix-ctimes change ctimes as well (requires root priviledges)
-f, --fix-files change timestamps of files as well
For more information: https://github.com/simsekhalit/mtime-fixer
```