From 3e14459c00eba21b59a735a57ce59c352f108705 Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Tue, 14 Oct 2014 12:10:08 +0000
Subject: [PATCH] pull substituted vars to end to move "syntax" errors to end of file.
---
client/library/library_cloudfs.js | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/client/library/library_cloudfs.js b/client/library/library_cloudfs.js
index 8c4ef67..4bd6597 100644
--- a/client/library/library_cloudfs.js
+++ b/client/library/library_cloudfs.js
@@ -299,13 +299,13 @@
if (pathinfo.type == 'file') {
mount.opts.provider.read(mount.opts.cloud, pathinfo.url,
function(data) {
- callback(null, { contents: data, timestamp: pathinfo.timestamp, mode: {{{ cDefine('S_IFREG') | 0777 }}} });
+ callback(null, { contents: data, timestamp: pathinfo.timestamp, mode: CLOUDFS._FILE_MODE });
},
function(e) {
callback(e);
});
} else {
- callback(null, { timestamp: pathinfo.timestamp, mode: {{{ cDefine('S_IFDIR') | 0777 }}} });
+ callback(null, { timestamp: pathinfo.timestamp, mode: CLOUDFS._DIR_MODE });
}
},
// storing local and remote files
@@ -370,7 +370,9 @@
callback(e);
});
}
- }
+ },
+ _FILE_MODE: {{{ cDefine('S_IFREG') | 0777 }}},
+ _DIR_MODE: {{{ cDefine('S_IFDIR') | 0777 }}}
}
};
--
Gitblit v1.9.3