[
https://issues.apache.org/jira/browse/HADOOP-18188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17517828#comment-17517828
]
Akira Ajisaka commented on HADOOP-18188:
----------------------------------------
{quote}I mean if some application expects PathIsDirectoryException to be thrown
for touch command used with directory, from that viewpoint this behaviour
change might be treated as incompatible?
{quote}
Thank you [~vjasani] for your comment. It makes sense to me, so I will add a
release note to warn the users. Anyway I'm not a fan of adding a new option
because the option is not consistent with the touch command in POSIX.
> Support touch command for directory
> -----------------------------------
>
> Key: HADOOP-18188
> URL: https://issues.apache.org/jira/browse/HADOOP-18188
> Project: Hadoop Common
> Issue Type: Improvement
> Reporter: Akira Ajisaka
> Assignee: Viraj Jasani
> Priority: Major
> Labels: pull-request-available
> Time Spent: 50m
> Remaining Estimate: 0h
>
> Currently hadoop fs -touch command cannot update the mtime and the atime of
> directory. The feature would be useful when we check whether the filesystem
> is ready to write or not without creating any file.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]