Java File Touch touchDir(String filePath)

Here you can find the source of touchDir(String filePath)

Description

touch Dir

License

Open Source License

Declaration

public static void touchDir(String filePath) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.File;

public class Main {
    public static void touchDir(String filePath) {
        File file = new File(filePath);
        if (!file.exists()) {
            file.mkdir();//from w w  w.  j av a  2  s .  co  m
        }
    }
}

Related

  1. touch(String file)
  2. touch(String fileName)
  3. touch(String filePath)
  4. touch(String fullFilePath)
  5. touch(String name)
  6. touchExisting(File file)
  7. touchFile(File directory, String name)
  8. touchFile(File file)
  9. touchFile(File file)