Skip to content

Commit

Permalink
feat(docs): note on st_mtime bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickkirschen committed May 13, 2024
1 parent af90460 commit 80b4f5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"cSpell.words": [
"ddir",
"pytest",
"shutil",
"venv",
"yannickkirschen"
],
Expand All @@ -25,4 +26,4 @@
"[python]": {
"editor.defaultFormatter": "ms-python.autopep8"
}
}
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ resolve them.

Check out the [diff file format](#the-diff-file-format) as well.

> [!Caution]
> When copying data from the internal storage device to an external one, there currently is a strange bug that causes the metadata to be incorrect. Precisely, `shutil.copy2` does not manage to copy `st_mtime` correctly - there is always a difference by a couple of milliseconds. I have no idea where this comes from. In [v2.0.2](https://github.com/yannickkirschen/ddir/releases/tag/2.0.2) I added ceiling of the timestamps but removed it in [v3.1.0](https://github.com/yannickkirschen/ddir/releases/tag/3.1.0) cause it was just a workaround. Still looking for a solution ...
## Installation

`pip install ddir`
Expand Down

0 comments on commit 80b4f5d

Please sign in to comment.