Class IFileUtil


  • public class IFileUtil
    extends Object
    • Constructor Detail

      • IFileUtil

        public IFileUtil()
    • Method Detail

      • copyFileContent

        public static boolean copyFileContent​(IFile oldFile,
                                              IFile newFile)
      • copyDirectoryContent

        public static boolean copyDirectoryContent​(IFile oldDirectory,
                                                   IFile newDirectory)
      • isJarFile

        public static boolean isJarFile​(@NotNull
                                        IFile file)
      • stepIntoJar

        @NotNull
        public static IFile stepIntoJar​(@NotNull
                                        IFile jarFile)
        Fixme: will be replaced with the simple call getDescendant. Resulting file is already inside jar, i.e. file in JarFileSystem, because we added JAR_SEPARATOR
        Parameters:
        jarFile - shall be java archive file
      • getDescendant

        public static IFile getDescendant​(@NotNull
                                          IFile file,
                                          String relativePath)
        Allows getting descendant in the same FS by a relative path. The path may include "//",".",".."
      • createTmpDir

        public static IFile createTmpDir()
      • getCanonicalPath

        public static String getCanonicalPath​(IFile file)
      • getAllFiles

        public static List<IFile> getAllFiles​(IFile directory)