@Deprecated public class FileUtil extends Object
| Constructor and Description |
|---|
FileUtil()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canExecute(File path)
Deprecated.
Use
FileUtils.canExecute(File) instead |
static void |
createSymLink(File path,
String target)
Deprecated.
use
FileUtils.createSymLink(File, String) instead |
static void |
delete(File path)
Deprecated.
|
static boolean |
exists(File path)
Deprecated.
|
static FS.Attributes |
getFileAttributesPosix(FS fs,
File path)
Deprecated.
Use
FileUtils.getFileAttributesPosix(FS,File) instead |
static long |
getLength(File path)
Deprecated.
Use
FileUtils.getLength(File) instead |
static boolean |
isDirectory(File path)
Deprecated.
|
static boolean |
isFile(File path)
Deprecated.
|
static boolean |
isHidden(File path)
Deprecated.
Use
Files.isHidden(java.nio.file.Path) instead |
static boolean |
isSymlink(File path)
Deprecated.
Use
Files.isSymbolicLink(java.nio.file.Path) instead |
static long |
lastModified(File path)
Deprecated.
|
static File |
normalize(File file)
Deprecated.
Use
FileUtils.normalize(File) instead |
static String |
normalize(String name)
Deprecated.
Use
FileUtils.normalize(String) instead |
static String |
readSymlink(File path)
Deprecated.
use
FileUtils.readSymLink(File) instead |
static void |
setHidden(File path,
boolean hidden)
Deprecated.
Use
FileUtils.setHidden(File,boolean) instead |
static void |
setLastModified(File path,
long time)
Deprecated.
|
@Deprecated public static String readSymlink(File path) throws IOException
FileUtils.readSymLink(File) insteadpath - IOException@Deprecated public static void createSymLink(File path, String target) throws IOException
FileUtils.createSymLink(File, String) insteadpath - path of the symlink to be createdtarget - target of the symlink to be createdIOException@Deprecated public static boolean isSymlink(File path)
Files.isSymbolicLink(java.nio.file.Path) insteadpath - true if the passed path is a symlink@Deprecated public static long lastModified(File path) throws IOException
Files.getLastModifiedTime(java.nio.file.Path, java.nio.file.LinkOption...)
insteadpath - IOException@Deprecated public static void setLastModified(File path, long time) throws IOException
Files.setLastModifiedTime(java.nio.file.Path, java.nio.file.attribute.FileTime)
insteadpath - time - IOException@Deprecated public static boolean exists(File path)
Files.exists(java.nio.file.Path, java.nio.file.LinkOption...)
insteadpath - true if the given path exists@Deprecated public static boolean isHidden(File path) throws IOException
Files.isHidden(java.nio.file.Path) insteadpath - true if the given path is hiddenIOException@Deprecated public static void setHidden(File path, boolean hidden) throws IOException
FileUtils.setHidden(File,boolean) insteadpath - hidden - IOException@Deprecated public static long getLength(File path) throws IOException
FileUtils.getLength(File) insteadpath - IOException@Deprecated public static boolean isDirectory(File path)
Files.isDirectory(java.nio.file.Path, java.nio.file.LinkOption...)
insteadpath - true if the given file a directory@Deprecated public static boolean isFile(File path)
Files.isRegularFile(java.nio.file.Path, java.nio.file.LinkOption...)
insteadpath - true if the given file is a file@Deprecated public static boolean canExecute(File path)
FileUtils.canExecute(File) insteadpath - true if the given file can be executed@Deprecated public static void delete(File path) throws IOException
FileUtils.delete(File)path - IOException@Deprecated public static FS.Attributes getFileAttributesPosix(FS fs, File path)
FileUtils.getFileAttributesPosix(FS,File) insteadfs - path - @Deprecated public static File normalize(File file)
FileUtils.normalize(File) insteadfile - File, otherwise the passed file@Deprecated public static String normalize(String name)
FileUtils.normalize(String) insteadname - Copyright © 2017 Eclipse JGit Project. All rights reserved.