Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

marionette-file-manager

Package Overview
Dependencies
Maintainers
7
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marionette-file-manager - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

15

lib/desktop_client_device_storage.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc