[ 
https://issues.apache.org/jira/browse/IO-723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17301299#comment-17301299
 ] 

Thib Guicherd-Callin commented on IO-723:
-----------------------------------------

With GNU touch:

touch /tmp/foo/bar.txt succeeds and updates the timestamp of /tmp/foo/bar.txt 
if /tmp/foo/bar.txt exists

touch /tmp/foo/bar.txt succeeds and creates /tmp/foo/bar.txt if /tmp/foo/ 
exists but /tmp/foo/bar.txt doesn't exist

touch /tmp/foo/bar.txt fails (and doesn't create /tmp/foo/ or /tmp/foo/bar.txt) 
if /tmp/foo/ doesn't exist

> FileUtils.touch() without mkdirs()
> ----------------------------------
>
>                 Key: IO-723
>                 URL: https://issues.apache.org/jira/browse/IO-723
>             Project: Commons IO
>          Issue Type: Wish
>            Reporter: Thib Guicherd-Callin
>            Priority: Minor
>
> Regardless of IO-722, a version of FileUtils.touch() without mkdirs() 
> behavior (a version that does not create intermediate directories) is desired.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to