Package jetbrains.mps.util
Class IFileUtil
- java.lang.Object
 - 
- jetbrains.mps.util.IFileUtil
 
 
- 
public class IFileUtil extends Object
 
- 
- 
Constructor Summary
Constructors Constructor Description IFileUtil() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancopyDirectoryContent(IFile oldDirectory, IFile newDirectory)static booleancopyFileContent(IFile oldFile, IFile newFile)static IFilecreateTmpDir()static List<IFile>getAllFiles(IFile directory)static StringgetCanonicalPath(IFile file)static IFilegetDescendant(IFile file, String relativePath)Allows getting descendant in the same FS by a relative path.static StringgetTextContents(IFile file)static booleanisJarFile(IFile file)static IFilestepIntoJar(IFile jarFile)Fixme: will be replaced with the simple call getDescendant. 
 - 
 
- 
- 
Method Detail
- 
copyDirectoryContent
public static boolean copyDirectoryContent(IFile oldDirectory, IFile newDirectory)
 
- 
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 bejava 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()
 
- 
getTextContents
public static String getTextContents(IFile file) throws IOException
- Throws:
 IOException
 
 - 
 
 -