Crates.io | touch-cli |
lib.rs | touch-cli |
version | 1.2.1 |
created_at | 2024-06-28 20:46:28.333772+00 |
updated_at | 2025-09-17 14:25:18.452077+00 |
description | Fast, Parallelized touch(1) file utility |
homepage | https://gitlab.com/hsn10/touch-rs |
repository | https://gitlab.com/hsn10/touch-rs.git |
max_upload_size | |
id | 1287015 |
size | 39,099 |
This is Rust rewrite of classic POSIX touch
(1)
file utility for changing file timestamps.
This version works natively on Windows and Unix.
The touch
utility modifies file timestamps, allowing you to change access and modification times.
This Rust performance rewrite version uses tokio multi threaded backend for processing multiple files concurrently which gives it major speedups compared to other touch programs.
This is especially visible when working on network attached NFS or SMB drives. This speedups makes this version highly desirable for use in CI jobs, because you are billed per second.
For filename mask specification touch-cli uses glob format from glob crate. Glob format supports recursive touch (example: **/*.d) It allows you to update timestamps for files within subdirectories as well.
Glob patterns and following options are supported as command line arguments. Program uses getopt3 for options parsing, which have support for some extended parsing features such as grouping of options.
Default is to create new files and change both access and modification times.