text: import { FileSystem as fs } from '@alice-network/zos-lib'
  
  export function cleanup(path) {
    try {
      if(fs.isDir(path)) fs.removeTree(path)
      else fs.remove(path)
    } catch(e) { /* swallow exception */ }
  }
  
  export function cleanupfn(path) {
    return function() {
      cleanup(path);
    }
  }
  