marionette-file-manager
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -1,2 +0,1 @@ | ||
const TESTING_DIRECTORY = 'device-storage-testing'; | ||
var path = require('path'), | ||
@@ -30,4 +29,3 @@ fs = require('fs'); | ||
getMediaFilePath: function(type) { | ||
var filePath; | ||
filePath = path.join(this.getDeviceStoragePath(), type); | ||
var filePath = path.join(this.getDeviceStoragePath(), type); | ||
if (!fs.existsSync(filePath)) { | ||
@@ -41,3 +39,2 @@ fs.mkdirSync(filePath); | ||
* Get device storage path. | ||
* The device-storage-testing directory is also created by FF. | ||
* | ||
@@ -47,3 +44,11 @@ * @return {String} path to device storage directory. | ||
getDeviceStoragePath: function() { | ||
return path.join(this._getTemporaryPath(), TESTING_DIRECTORY); | ||
// The device-storage-testing directory is also created by FF. | ||
// If it doesn't exsit before we get the its path, | ||
// we will create it manually. | ||
var filePath = path.join(this._getTemporaryPath(), | ||
'device-storage-testing'); | ||
if (!fs.existsSync(filePath)) { | ||
fs.mkdirSync(filePath); | ||
} | ||
return filePath; | ||
}, | ||
@@ -50,0 +55,0 @@ |
{ | ||
"name": "marionette-file-manager", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Evan Tseng", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74704
628
1