@xuda.io/drive_module 1.1.525 → 1.1.527

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -238,7 +238,7 @@ exports.get_drive_files = async function (req) {
238
238
  : path.join(_conf.studio_drive_path, app_id_master);
239
239
 
240
240
  const options = {
241
- stat: false,
241
+ stat: true,
242
242
 
243
243
  symbolicLinks: false,
244
244
  size: true,
@@ -286,6 +286,8 @@ exports.get_drive_files = async function (req) {
286
286
  if (ret.code > -1) {
287
287
  if (val.type === "file") {
288
288
  val.cy_data = ret.data;
289
+ val.date_created = new Date(val.stat.birthtime).valueOf();
290
+ delete val.stat;
289
291
  val.access_link = await rep(
290
292
  val.path, // + "?r=" + ret.data._rev,
291
293
  drive_type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.525",
3
+ "version": "1.1.527",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {