summaryrefslogtreecommitdiff
path: root/src/utils/virtfs.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-15 15:56:45 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-15 17:12:19 +0300
commitd6bf14eebdfb9939e0fa1f61f81fa1046ff9ea27 (patch)
treea48d3d2cf16e347e18a65020d755371eb0cabcfe /src/utils/virtfs.cpp
parent42b05f92d4466aa49806ab7d1e6985ad943ae1ea (diff)
downloadplus-d6bf14eebdfb9939e0fa1f61f81fa1046ff9ea27.tar.gz
plus-d6bf14eebdfb9939e0fa1f61f81fa1046ff9ea27.tar.bz2
plus-d6bf14eebdfb9939e0fa1f61f81fa1046ff9ea27.tar.xz
plus-d6bf14eebdfb9939e0fa1f61f81fa1046ff9ea27.zip
Fix unit tests if unpack from tarball. Here soft links replaced to actual files.
Diffstat (limited to 'src/utils/virtfs.cpp')
-rw-r--r--src/utils/virtfs.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/virtfs.cpp b/src/utils/virtfs.cpp
index 7c67deebc..fdcdab6d6 100644
--- a/src/utils/virtfs.cpp
+++ b/src/utils/virtfs.cpp
@@ -106,6 +106,11 @@ namespace VirtFs
return PHYSFS_isDirectory(name.c_str());
}
+ bool isSymbolicLink(const std::string &restrict name)
+ {
+ return PHYSFS_isSymbolicLink(name.c_str());
+ }
+
void freeList(VirtList *restrict const handle)
{
delete handle;