Java Path File Check nio isFileSymLink(File path)

Here you can find the source of isFileSymLink(File path)

Description

returns true if the path specified is actually a symbolic link.

License

Open Source License

Declaration

public static boolean isFileSymLink(File path) 

Method Source Code


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

import java.io.File;

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

public class Main {
    /**/*from   w  w  w.  j  ava2  s.  c  o m*/
     * returns true if the path specified is actually a symbolic link.
     */
    public static boolean isFileSymLink(File path) {
        Path nioPath = path.toPath();
        return Files.isSymbolicLink(nioPath);
    }
}

Related

  1. isEqualPath(final Path file1, final String topLevelAbsolutePath)
  2. isExcluded(Set excludes, Path path)
  3. isFile(final String path)
  4. isFile(Path file)
  5. isFileHidden(Path file)
  6. isFileWritable(final Path file)
  7. isFolder(Path path)
  8. isHidden(final Path path)
  9. isHidden(Path path)