await File.append('myfile.txt', 'Sincerely, The End.');
await File.append('myfile.json', {name:'Alex'});
await File.create('myfile.txt', 'Hello FS World.');
Used to download a file over http or https.
- outputPath - Not required, when provided, will store at the requested location.
const uri = 'http://w3c.github.io/csvw/tests/test001.json';
const data = await File.download(uri);
await File.download(uri, 'test0001.json');
await File.ensure('myfile.txt');
await File.exists('myfile.txt');
await File.read('myfile.txt');
await File.remove('myfile.txt');