-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated 3rd party request script to get rid of issues with download a…
…dded comparator tool housed in private git.
- Loading branch information
1 parent
be29f8c
commit e14ff52
Showing
3 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
|
||
const fs = require('fs'); | ||
|
||
var count =0 | ||
|
||
|
||
function recursepath(path) { | ||
var files = []; | ||
|
||
var dir = fs.readdirSync(path, { withFileTypes: true }); | ||
|
||
for (var i in dir) { | ||
|
||
var name = dir[i].name.toString(); | ||
|
||
if (dir[i].isFile() && name!=".gitignore'") { | ||
files.push(path + '\\' + dir[i].name.toString()); | ||
} | ||
else { | ||
if (name!=".git" && name !='bin' && name !='obj' && name!="node_modules" ) | ||
{ | ||
files = files.concat(recursepath(path + '\\' + dir[i].name)); | ||
} | ||
} | ||
} | ||
|
||
return files; | ||
} | ||
|
||
var txt = fs.readFileSync("m.txt").toString(); | ||
|
||
var words = txt.split(/\s/); | ||
|
||
var files = recursepath("C:\\Users\\John\\Documents\\CensusProject\\QrCode"); | ||
var pcfiles = []; | ||
var oldfiles =[]; | ||
for (var i in files) | ||
{ | ||
pcfiles.push ('git mv \"'+files[i]+'\" \"'+files[i]+'bs\"'); | ||
oldfiles.push ('git mv \"'+files[i]+'bs\" \"'+files[i]+'\"'); | ||
|
||
} | ||
|
||
var s=""; | ||
|
||
for (var p in pcfiles) | ||
{ | ||
s+=pcfiles[p]+"\n"; | ||
} | ||
|
||
fs.writeFileSync('remscript.txt',s); | ||
|
||
s=""; | ||
|
||
for (var o in oldfiles) | ||
{ | ||
s+=oldfiles[o]+"\n"; | ||
} | ||
|
||
fs.writeFileSync('oldscript.txt',s); |
e14ff52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
request/request#3365
issue fixed with code change.