public interface FilePath
VirtualFile getVirtualFile()
VirtualFile getVirtualFileParent()
java.io.File getIOFile()
File
that corresponds to the path. The path might be non-existent or not local.isNonLocal()
java.lang.String getName()
java.lang.String getPresentableUrl()
@Deprecated Document getDocument()
FileDocumentManager.getDocument(VirtualFile)
directly.java.nio.charset.Charset getCharset()
java.nio.charset.Charset getCharset(Project project)
FileType getFileType()
@Deprecated void refresh()
VfsUtil.findFileByIoFile(java.io.File, boolean)
or VirtualFileSystem.findFileByPath(java.lang.String)
instead.@Deprecated void hardRefresh()
VirtualFileSystem.refreshAndFindFileByPath(java.lang.String)
instead.@SystemIndependent java.lang.String getPath()
boolean isDirectory()
boolean isUnder(FilePath parent, boolean strict)
parent
- a possible parentstrict
- if false, the method also returns true if files are equalthis
file is ancestor of the parent
.FilePath getParentPath()
boolean isNonLocal()