Repository navigation
Conversation
glenn20
force-pushed
the
feature_moduos_utime
branch
3 times, most recently
from
October 17, 2022 09:08
efb6cd7 to
abc4d3c
Compare
glenn20
force-pushed
the
feature_moduos_utime
branch
from
October 17, 2022 10:59
abc4d3c to
a141dc0
Compare
Contributor
Author
|
OK - all ports are compiling successfully now, including windows with gcc-mingw64. |
glenn20
force-pushed
the
feature_moduos_utime
branch
from
October 31, 2022 06:09
a141dc0 to
1e6b44b
Compare
Add utime() method to uos module via vfs layer: - Does not support "ns", "dir_fd" or "follow_symlinks" arguments from cpython. - utimes=None is not supported on qemu-arm due to lack of mp_hal_time_ns() support.
Uses utime() system call instead of utimes(). utime() has been obsoleted in posix.1-2008, but utimes() is not supported on windows (compiled with gcc-mingw-w64).
glenn20
force-pushed
the
feature_moduos_utime
branch
from
April 2, 2023 05:58
1e6b44b to
4475fe4
Compare
|
Code size report: |
Contributor
|
This is an automated heads-up that we've just merged a Pull Request See #13763 A search suggests this PR might apply the STATIC macro to some C code. If it Although this is an automated message, feel free to @-reply to me directly if |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for
os.utime(filename, (atime, mtime)).This is especially useful for preserving timestamps of files and directory stuctures copied onto (or sunchronised) between micropython boards and host systems or for managing file timestamps.
Support is provided for LittleFS2, FAT and posix filesystems.