Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-722

Improve FileUtils.touch() Javadoc to clarify it does not behave like GNU touch

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.12.0
    • None
    • None

    Description

      The Javadoc of FileUtils.touch() says it behaves like the Unix touch utility. I'm not sure about the Unix one, but the GNU one does not create intermediate directories (e.g. touch /tmp/foo/bar/baz does not succeed if /tmp/foo/bar/ does not already exist). Currently there is a paragraph further down in the Javadoc that says 'Also, as from v1.3 this method creates parent directories if they do not exist', but the implication in the leading sentence that it behaves like Unix touch is misleading.

      Attachments

        Activity

          People

            Unassigned Unassigned
            thibgc Thib Guicherd-Callin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: