io-info
v1.0.7
Published
Nodejs file api just like FileInfo & DirectoryInfo in C#
Downloads
17
Readme
node-io-info
node file api , just like FileInfo & DirectoryInfo Class in C#
typescript enabled
install:
npm install io-info
API:
FileInfo
const io = require("io-info")
let f1 = new io.FileInfo("simple/1.txt"); //FileInfo in c#.net
f1.create();
f1.attributes;
f1.exists;
f1.copyTo("dir3");
f1.moveTo("dir2");
f1.length;
...
io.FileInfo.writeAllText(f1.fullName,"some test");
io.FileInfo.readAllText(f1.fullName)
...
DirectoryInfo
const io = require("io-info")
let d1 = new io.DirectoryInfo("simple");//DirectoryInfo in c#.net
d1.copyTo("simple1");
d1.size;
d1.copyTo("dir4");
d1.delete();
d1.exists;
...
...