Comparing version 0.2.4 to 0.2.5
@@ -72,4 +72,2 @@ const fs = require('fs') | ||
mkdirSync(path, options = { recursive: true }){ | ||
if(!p.extname(path) == "") | ||
throw(new Error(`mkdirSync expects a folder path, but ${path} provided`)) | ||
let flag = true | ||
@@ -104,4 +102,2 @@ try{ | ||
async mkdir(path, options = {}){ | ||
if(!p.extname(path) == "") | ||
throw(new Error(`mkdir expects a folder path, but ${path} provided`)) | ||
const { recursive, force } = options | ||
@@ -108,0 +104,0 @@ if(!force && await this.exists(path)) return false |
{ | ||
"name": "hotfile", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "Hotfile makes working with folders and files in node-js easy and clear.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
15420
223