diff options
| author | jhurst <jhurst@cinecert.com> | 2007-01-23 23:32:11 +0000 |
|---|---|---|
| committer | jhurst <> | 2007-01-23 23:32:11 +0000 |
| commit | 1e3eeac187fd3dd485a79ec7c0f5dfe86aa29e31 (patch) | |
| tree | 8deae0874624ccde49203062f1aed1c103fd7f0e /src/KM_fileio.cpp | |
| parent | 984de376d405e0b68e77d61558d4f798fa1170a5 (diff) | |
PathIs* were too noisy
Diffstat (limited to 'src/KM_fileio.cpp')
| -rw-r--r-- | src/KM_fileio.cpp | 12 |
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)) ) |
