Add File Touch API
See original GitHub issueI’d like some way to ‘touch’ (i.e. set the last write time to the current time) a file using cake.
Basically to do this: System.IO.File.SetLastWriteTimeUtc(fileName, DateTime.UtcNow);
Does that sound like something you would consider accepting a PR for, or should I create this as an addin instead? I figured it’d fit well within Cake.Common.IO, following the same pattern as the other basic file operations.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Method: files.touch | Google Drive
Experiment with authorization and field settings. For help, check the APIs Explorer documentation. Request parameters. fileId.
Read more >touch command in Linux with Examples
The touch command is a standard command used in UNIX/Linux operating system which is used to create, change and modify timestamps of a...
Read more >How To Use The touch Command in Linux {12 Examples}
The touch command creates files in Linux through the terminal. Learn about the advanced touch options through this hands-on tutorial.
Read more >How to use touch(1)
The answer of echox is valid but I want to add information regarding file creation time. Some file systems support an additional entry...
Read more >What Is Linux Touch Command + Practical Usage Examples
The Linux touch command is a standard command used to modify the timestamps of a file. Learn how to use the touch command...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Redth Touch usually not only means to update the last modification date, but also creating the file, if it doesn’t exist.
Great! I hadn’t seen that addin before, that’s perfect.
@Redth I’ll write up a PR this evening.