summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/components/filedb/filedb.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk/components/filedb/filedb.hpp')
-rw-r--r--sca-cpp/trunk/components/filedb/filedb.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sca-cpp/trunk/components/filedb/filedb.hpp b/sca-cpp/trunk/components/filedb/filedb.hpp
index 41dde88bef..89e0c1b424 100644
--- a/sca-cpp/trunk/components/filedb/filedb.hpp
+++ b/sca-cpp/trunk/components/filedb/filedb.hpp
@@ -91,7 +91,7 @@ private:
* Convert a key to a file name.
*/
const string filename(const list<value>& path, const string& root) {
- if (isNil(path))
+ if (isNull(path))
return root;
const string name = root + "/" + (isString(car(path))? (string)car(path) : write(content(scheme::writeValue(car(path)))));
return filename(cdr(path), name);
@@ -107,7 +107,7 @@ const string filename(const value& key, const string& root) {
* Make the parent directories of a keyed file.
*/
const failable<bool> mkdirs(const list<value>& path, const string& root) {
- if (isNil(cdr(path)))
+ if (isNull(cdr(path)))
return true;
const string dir = root + "/" + (isString(car(path))? (string)car(path) : write(content(scheme::writeValue(car(path)))));
mkdir(c_str(dir), S_IRWXU);