diff --git a/SharpPhysFS/PhysFS.cs b/SharpPhysFS/PhysFS.cs
index 4c88221..0cd8cb1 100644
--- a/SharpPhysFS/PhysFS.cs
+++ b/SharpPhysFS/PhysFS.cs
@@ -179,7 +179,7 @@ namespace SharpPhysFS
{
var strPtr = (IntPtr)Marshal.PtrToStructure(ptr, typeof(IntPtr));
var str = Marshal.PtrToStringAnsi(strPtr);
- if (System.IO.File.Exists(str)) { yield return str; } // the lib seems to be returning directories. boo!
+ if (!IsDirectory(str)) { yield return str; } // the lib seems to be returning directories. boo!
}
Interop.PHYSFS_freeList(files);
}
diff --git a/SharpPhysFS/SharpPhysFS.csproj b/SharpPhysFS/SharpPhysFS.csproj
index 83efe1a..e3cc209 100644
--- a/SharpPhysFS/SharpPhysFS.csproj
+++ b/SharpPhysFS/SharpPhysFS.csproj
@@ -11,5 +11,5 @@
true
-
+
diff --git a/SharpPhysFS/app.config b/SharpPhysFS/app.config
new file mode 100644
index 0000000..ae2fcaa
--- /dev/null
+++ b/SharpPhysFS/app.config
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+