rm readwritetest

pull/2113/head
filip mertens 3 years ago
parent 52529459b6
commit 385f8ff357
  1. 14
      apps/remix-ide/src/app/files/fileSystem.ts

@ -15,20 +15,6 @@ export class fileSystem {
this.hasWorkSpaces = false this.hasWorkSpaces = false
this.loaded = false this.loaded = false
} }
ReadWriteTest = async () => {
try {
const str = 'Hello World'
await this.fs.writeFile('/test.txt', str, 'utf8')
if (await this.fs.readFile('/test.txt', 'utf8') === str) {
console.log('Read/Write Test Passed')
return true
}
await this.fs.remove('/test.txt', 'utf8')
} catch (e) {
console.log(e)
}
return false
}
checkWorkspaces = async () => { checkWorkspaces = async () => {
try { try {

Loading…
Cancel
Save