Comparing version 0.1.7 to 0.1.8
@@ -7,2 +7,3 @@ const p = require('path') | ||
constructor(path){ | ||
if(p.extname(path) == "" && !this.existsSync(path)) this.mkdirSync(path) | ||
const stat = fs.statSync(path) | ||
@@ -9,0 +10,0 @@ this.isFile = stat.isFile() |
{ | ||
"name": "hotfile", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
global.z = (v) => console.log(v) | ||
const { Hotfolder, Hotfile, Hot } = require('./index') | ||
// const myfolder = require('hotfile')('./myfolder') | ||
const dirpath = './myfolder' | ||
const dirpath = './myfolder/sub01/sub02' | ||
const filepath = './myfile.txt' | ||
if(!Hot.exists(dirpath)) Hot.mkdir(dirpath) | ||
// if(!Hot.exists(dirpath)) Hot.mkdir(dirpath) | ||
const myfolder = new Hotfolder(dirpath) | ||
@@ -8,0 +8,0 @@ // const myfile = new Hotfile(filepath) |
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
10006
240