Java Path Create nio createTempDirectory(final String path, final String prefix)

Here you can find the source of createTempDirectory(final String path, final String prefix)

Description

create Temp Directory

License

Open Source License

Declaration

public static Path createTempDirectory(final String path, final String prefix) throws Exception 

Method Source Code

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

import java.nio.file.FileSystem;
import java.nio.file.FileSystems;

import java.nio.file.Files;
import java.nio.file.Path;

public class Main {

    public static Path createTempDirectory(final String path, final String prefix) throws Exception {
        FileSystem fs = FileSystems.getDefault();
        Path temp = Files.createTempDirectory(fs.getPath(path), prefix);
        return temp;
    }/*from ww  w . j a v  a 2 s.com*/
}

Related

  1. createRelativePath(File baseDirFile, File file)
  2. createSourceFile(Path path, String... lines)
  3. createSymbolicLink(String linkPathString, String targetPathString)
  4. createSymlink(Path realFileLocation, Path softLinkLocation)
  5. createSymlink(String targetPathStr, File symlinkFile)
  6. createTempDirectory(Path dir, String prefix)
  7. createTempFile(Path baseDir, String prefix, String suffix)
  8. createTempFilePath(final String stem, final String extension)
  9. createTempPath(String prefix, String suffix)