Complete json format

This commit is contained in:
Samy Pessé
2016-04-25 11:05:06 +02:00
parent 3aa17ab1f4
commit 814b6ff489
7 changed files with 27 additions and 21 deletions
+6 -1
View File
@@ -6,8 +6,13 @@
@return {Object}
*/
function encodeFileToJson(file) {
var filePath = file.getPath();
if (!filePath) {
return undefined;
}
return {
path: file.getPath(),
path: filePath,
mtime: file.getMTime(),
type: file.getType()
};