mirror of
https://github.com/zoriya/flood.git
synced 2025-12-06 07:16:18 +00:00
Filesystem: migrate from ospath.home() to os.homedir()
This commit is contained in:
5
package-lock.json
generated
5
package-lock.json
generated
@@ -12253,11 +12253,6 @@
|
||||
"os-tmpdir": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"ospath": {
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/ospath/-/ospath-1.2.2.tgz",
|
||||
"integrity": "sha1-EnZjl3Sj+O8lcvf+QoDg6kVQwHs="
|
||||
},
|
||||
"p-cancelable": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz",
|
||||
|
||||
@@ -78,7 +78,6 @@
|
||||
"nedb": "^1.8.0",
|
||||
"node-sass": "^4.13.0",
|
||||
"object-assign": "4.1.1",
|
||||
"ospath": "^1.2.2",
|
||||
"pascal-case": "^3.1.1",
|
||||
"passport": "^0.4.1",
|
||||
"passport-jwt": "^4.0.0",
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
const fs = require('fs');
|
||||
const ospath = require('ospath');
|
||||
const os = require('os');
|
||||
const path = require('path');
|
||||
|
||||
const getDirectoryList = (options, callback) => {
|
||||
const sourcePath = (options.path || '/').replace(/^~/, ospath.home());
|
||||
const sourcePath = (options.path || '/').replace(/^~/, os.homedir());
|
||||
|
||||
try {
|
||||
const directories = [];
|
||||
|
||||
Reference in New Issue
Block a user