const response = await myBox.fs.exists({ path: '/tmp/file.txt' }); Copy
const response = await myBox.fs.exists({ path: '/tmp/file.txt' });
const response = await myBox.fs.get({ path: '/tmp/file.txt' }); Copy
const response = await myBox.fs.get({ path: '/tmp/file.txt' });
const response = await myBox.fs.getInfo({ path: '/tmp/file.txt' }); Copy
const response = await myBox.fs.getInfo({ path: '/tmp/file.txt' });
const response = await myBox.fs.list('/tmp');orconst response = await myBox.fs.list({ path: '/tmp', depth: 1 }); Copy
const response = await myBox.fs.list('/tmp');orconst response = await myBox.fs.list({ path: '/tmp', depth: 1 });
const response = await myBox.fs.listInfo('/tmp');orconst response = await myBox.fs.listInfo({ path: '/tmp', depth: 1 }); Copy
const response = await myBox.fs.listInfo('/tmp');orconst response = await myBox.fs.listInfo({ path: '/tmp', depth: 1 });
const response = await myBox.fs.read({ path: '/tmp/file.txt' }); Copy
const response = await myBox.fs.read({ path: '/tmp/file.txt' });
const response = await myBox.fs.remove({ path: '/tmp/file.txt' }); Copy
const response = await myBox.fs.remove({ path: '/tmp/file.txt' });
const response = await myBox.fs.rename({ oldPath: '/tmp/file.txt', newPath: '/tmp/file2.txt' }); Copy
const response = await myBox.fs.rename({ oldPath: '/tmp/file.txt', newPath: '/tmp/file2.txt' });
const response = await myBox.fs.write({ path: '/tmp/file.txt', content: 'Hello, World!' }); Copy
const response = await myBox.fs.write({ path: '/tmp/file.txt', content: 'Hello, World!' });
Example