Class FileUtil


  • public class FileUtil
    extends Object
    Author:
    Frantisek Post
    • Constructor Detail

      • FileUtil

        public FileUtil()
    • Method Detail

      • touch

        public static boolean touch​(File file)
                             throws IOException
        Touching file changes its lastModified date record.

        Works only for existing files (not directories)

        Parameters:
        file -
        Returns:
        true if success, is touch failed.
        Throws:
        IOException
      • touch

        public static boolean touch​(org.openide.filesystems.FileObject fileObject)
                             throws IOException
        Touch the fileObject
        Parameters:
        fileObject -
        Returns:
        Throws:
        IOException