summaryrefslogtreecommitdiff
path: root/src/KM_fileio.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2007-01-23 23:32:11 +0000
committerjhurst <>2007-01-23 23:32:11 +0000
commit1e3eeac187fd3dd485a79ec7c0f5dfe86aa29e31 (patch)
tree8deae0874624ccde49203062f1aed1c103fd7f0e /src/KM_fileio.cpp
parent984de376d405e0b68e77d61558d4f798fa1170a5 (diff)
PathIs* were too noisy
Diffstat (limited to 'src/KM_fileio.cpp')
-rw-r--r--src/KM_fileio.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/KM_fileio.cpp b/src/KM_fileio.cpp
index e0a83ea..ec68f38 100644
--- a/src/KM_fileio.cpp
+++ b/src/KM_fileio.cpp
@@ -106,7 +106,9 @@ do_fstat(HANDLE handle, fstat_t* stat_info)
bool
Kumu::PathIsFile(const char* pathname)
{
- assert(pathname);
+ if ( pathname == 0 || *pathname == 0 )
+ return false;
+
fstat_t info;
if ( KM_SUCCESS(do_stat(pathname, &info)) )
@@ -123,7 +125,9 @@ Kumu::PathIsFile(const char* pathname)
bool
Kumu::PathIsDirectory(const char* pathname)
{
- assert(pathname);
+ if ( pathname == 0 || *pathname == 0 )
+ return false;
+
fstat_t info;
if ( KM_SUCCESS(do_stat(pathname, &info)) )
@@ -140,7 +144,9 @@ Kumu::PathIsDirectory(const char* pathname)
Kumu::fsize_t
Kumu::FileSize(const char* pathname)
{
- assert(pathname);
+ if ( pathname == 0 || *pathname == 0 )
+ return false;
+
fstat_t info;
if ( KM_SUCCESS(do_stat(pathname, &info)) )