file-utils
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ var _ = require('lodash'); |
@@ -0,0 +0,0 @@ var path = require('path'); |
@@ -342,3 +342,10 @@ /* | ||
if (!options.force) { | ||
var base = path.resolve(this._base || ''); | ||
var base = this._base; | ||
if (_.isFunction(this._base)) { | ||
base = this._base(); | ||
} | ||
if (!this._base) { | ||
base = ''; | ||
} | ||
base = path.resolve(base); | ||
if (fquery.isPathCwd(filepath)) { | ||
@@ -345,0 +352,0 @@ this.log.warn('Cannot delete the current working directory.'); |
@@ -0,0 +0,0 @@ module.exports = { |
@@ -0,0 +0,0 @@ /** |
{ | ||
"name": "file-utils", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Sync file utility for Node.js command line tools", | ||
@@ -14,16 +14,18 @@ "main": "index.js", | ||
"dependencies": { | ||
"findup-sync": "~0.1.2", | ||
"glob": "~3.2.6", | ||
"iconv-lite": "~0.4.3", | ||
"isbinaryfile": "~2.0.1", | ||
"lodash": "~2.4.1", | ||
"iconv-lite": "~0.2.11", | ||
"rimraf": "~2.2.2", | ||
"glob": "~3.2.6", | ||
"minimatch": "~0.2.12", | ||
"findup-sync": "~0.1.2", | ||
"isbinaryfile": "~2.0.0" | ||
"rimraf": "~2.2.2" | ||
}, | ||
"devDependencies": { | ||
"temporary": "~0.0.4", | ||
"grunt-contrib-jshint": "~0.8.0", | ||
"grunt-contrib-nodeunit": "~0.2.0", | ||
"grunt-contrib-watch": "~0.5.3", | ||
"grunt-release": "~0.6.0" | ||
"grunt": "^0.4.5", | ||
"grunt-cli": "^0.1.13", | ||
"grunt-contrib-jshint": "^0.10.0", | ||
"grunt-contrib-nodeunit": "^0.4.1", | ||
"grunt-contrib-watch": "^0.6.1", | ||
"grunt-release": "^0.7.0", | ||
"temporary": "~0.0.4" | ||
}, | ||
@@ -30,0 +32,0 @@ "repository": { |
@@ -0,0 +0,0 @@ file-utils [![](https://travis-ci.org/SBoudrias/file-utils.png)](https://travis-ci.org/SBoudrias/file-utils) |
@@ -87,2 +87,13 @@ 'use strict'; | ||
}, | ||
'delete with function base': function(test) { | ||
test.expect(3); | ||
this.env.setBase(function () { | ||
return path.join(tmpdir.path, '/env/scope'); | ||
}); | ||
this.env.write('delete.txt', 'foo'); | ||
test.ok(file.exists(path.join(tmpdir.path, '/env/scope', 'delete.txt')), 'file should exist'); | ||
test.ok(this.env.delete('delete.txt'), 'return true if it delete the file'); | ||
test.ok(!file.exists(path.join(tmpdir.path, '/env/scope', 'delete.txt')), 'file should\'ve been deleted'); | ||
test.done(); | ||
}, | ||
'mkdir': function(test) { | ||
@@ -89,0 +100,0 @@ test.expect(2); |
@@ -566,2 +566,3 @@ 'use strict'; | ||
var oldBase = process.cwd(); | ||
console.log(tmpdir.path); | ||
var cwd = path.resolve(tmpdir.path, 'delete', 'folder'); | ||
@@ -568,0 +569,0 @@ file.mkdir(cwd); |
var a = 1; |
var b = 2; |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ module.exports = function(grunt) { |
@@ -0,0 +0,0 @@ { |
A��o � isso a� |
@@ -0,0 +0,0 @@ // This is a test fixture for a case where spawn receives incomplete |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
Ação é isso aí |
@@ -0,0 +0,0 @@ exports.assertTextEqual = function (value, expected, test, msg) { |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1725
84351
7
60
+ Addediconv-lite@0.4.24(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
- Removediconv-lite@0.2.11(transitive)
Updatediconv-lite@~0.4.3
Updatedisbinaryfile@~2.0.1