[site] links to community

This commit is contained in:
Anna Bulenkova 2015-03-20 09:12:09 +01:00
parent 868ceb0dd6
commit 3104171635

View File

@ -12,8 +12,13 @@ The VCS API was significantly refactored in version 6.0, and this document does
### FilePath ### FilePath
A [FilePath](https://github.com/JetBrains/intellij-community/blob/master/platform/vcs-api/vcs-api-core/src/com/intellij/openapi/vcs/FilePath.java) represents a path to a file or directory on disk or in the VCS repository. A [FilePath](https://github.com/JetBrains/intellij-community/blob/master/platform/vcs-api/vcs-api-core/src/com/intellij/openapi/vcs/FilePath.java)
Unlike a VirtualFile, a FilePath can represent a path to a file which doesn't exist on disk. represents a path to a file or directory on disk or in the VCS repository.
Unlike a
[VirtualFile](https://github.com/JetBrains/intellij-community/blob/master/platform/core-api/src/com/intellij/openapi/vfs/VirtualFile.java),
a
[FilePath](https://github.com/JetBrains/intellij-community/blob/master/platform/vcs-api/vcs-api-core/src/com/intellij/openapi/vcs/FilePath.java)
can represent a path to a file which doesn't exist on disk.
The main difference between a FilePath and a java.io.File is that a FilePath caches the VirtualFile corresponding to the path, so it can be retrieved without doing a VFS search. The main difference between a FilePath and a java.io.File is that a FilePath caches the VirtualFile corresponding to the path, so it can be retrieved without doing a VFS search.
To create instances of FilePath, the VcsContextFactory API is used. To create instances of FilePath, the VcsContextFactory API is used.