org.eclipse.jgit.util.FileUtils.isFile()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(196)

本文整理了Java中org.eclipse.jgit.util.FileUtils.isFile()方法的一些代码示例,展示了FileUtils.isFile()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileUtils.isFile()方法的具体详情如下:
包路径:org.eclipse.jgit.util.FileUtils
类名称:FileUtils
方法名:isFile

FileUtils.isFile介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * Examine if path represents a regular file. If the OS/JRE supports
 * symbolic links the test returns false if path represents a symbolic link.
 *
 * @param path
 *            a {@link java.io.File} object.
 * @return true if path represents a regular file
 * @since 3.0
 */
public boolean isFile(File path) {
  return FileUtils.isFile(path);
}

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * Whether the given file can be executed.
 *
 * @param file
 *            a {@link java.io.File} object.
 * @return {@code true} if the given file can be executed.
 * @since 4.1
 */
public static boolean canExecute(File file) {
  if (!isFile(file)) {
    return false;
  }
  return Files.isExecutable(file.toPath());
}

代码示例来源:origin: sonia.jgit/org.eclipse.jgit

/**
 * Examine if path represents a regular file. If the OS/JRE supports
 * symbolic links the test returns false if path represents a symbolic link.
 *
 * @param path
 * @return true if path represents a regular file
 * @since 3.0
 */
public boolean isFile(File path) {
  return FileUtils.isFile(path);
}

代码示例来源:origin: berlam/github-bucket

/**
 * Examine if path represents a regular file. If the OS/JRE supports
 * symbolic links the test returns false if path represents a symbolic link.
 *
 * @param path
 *            a {@link java.io.File} object.
 * @return true if path represents a regular file
 * @since 3.0
 */
public boolean isFile(File path) {
  return FileUtils.isFile(path);
}

代码示例来源:origin: sonia.jgit/org.eclipse.jgit

/**
 * @param path
 * @return {@code true} if the given file is a file
 * @deprecated Use
 *             {@link Files#isRegularFile(java.nio.file.Path, java.nio.file.LinkOption...)}
 *             instead
 */
@Deprecated
public static boolean isFile(File path) {
  return FileUtils.isFile(path);
}

代码示例来源:origin: sonia.jgit/org.eclipse.jgit

/**
 * @param file
 * @return {@code true} if the given file can be executed
 * @since 4.1
 */
public static boolean canExecute(File file) {
  if (!isFile(file)) {
    return false;
  }
  return Files.isExecutable(file.toPath());
}

代码示例来源:origin: berlam/github-bucket

/**
 * Whether the given file can be executed.
 *
 * @param file
 *            a {@link java.io.File} object.
 * @return {@code true} if the given file can be executed.
 * @since 4.1
 */
public static boolean canExecute(File file) {
  if (!isFile(file)) {
    return false;
  }
  return Files.isExecutable(file.toPath());
}

相关文章