Java FileStore isPosixFileStore(Path path)

Here you can find the source of isPosixFileStore(Path path)

Description

is Posix File Store

License

Open Source License

Declaration

public static boolean isPosixFileStore(Path path) throws IOException 

Method Source Code

//package com.java2s;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static boolean isPosixFileStore(File file) throws IOException {
        return isPosixFileStore(file.toPath());
    }/*from  w  w  w  .  java 2s  . co m*/

    public static boolean isPosixFileStore(Path path) throws IOException {
        return Files.isSymbolicLink(path)
                || Files.getFileStore(path).supportsFileAttributeView(
                        "posix");
    }
}

Related

  1. getFileStore(URI uri)
  2. getMountPoint(FileStore store)
  3. getPosixAttributes(Path file)
  4. getStorageName(final File file)
  5. getTopResourceInVolume(URI location)
  6. isPosixFileSystem()
  7. spinsLinux(Path path)