lib/json/encodeFile.js
function encodeFileToJson(file) {
    var filePath = file.getPath();
    if (!filePath) {
        return undefined;
    }

    return {
        path: filePath,
        mtime: file.getMTime(),
        type: file.getType()
    };
}
function encodeFileToJson(file) {
    var filePath = file.getPath();
    if (!filePath) {
        return undefined;
    }

    return {
        path: filePath,
        mtime: file.getMTime(),
        type: file.getType()
    };
}
function encodeFileToJson ( file ) { var filePath = file . getPath ( ) ; if ( ! filePath ) { return undefined ; } return { path : filePath , mtime : file . getMTime ( ) , type : file . getType ( ) } ; }
Return a JSON representation of a file

@param {File} file
@return {Object}
Return a JSON representation of a file