Class FileUtils

java.lang.Object
org.jweaver.crawler.internal.util.FileUtils

public final class FileUtils extends Object
This utility class provides file-related operations. Avoid adding more libraries
  • Method Details

    • mkdir

      public static void mkdir(File dir, boolean createDirectoryIfNotExisting) throws IOException
      Creates a directory if it does not exist.
      Parameters:
      dir - The directory to create.
      createDirectoryIfNotExisting - If true, creates the directory if it does not exist; otherwise, throws an IOException.
      Throws:
      IOException - If an I/O error occurs while creating the directory, or if the directory already exists as a file.