:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
Once the minimum supported version of node is >= 14.14, removal of files could be simplified in detach mode.
detach.ts currently uses a mixture of unlink and rmdir to remove wanted and unwanted files from the instances directory. This could be replaced by fsPromises.rm, utilising the recursive argument.
Once the minimum supported version of node is >= 14.14, removal of files could be simplified in detach mode.
detach.ts
currently uses a mixture ofunlink
andrmdir
to remove wanted and unwanted files from the instances directory. This could be replaced byfsPromises.rm
, utilising therecursive
argument.https://nodejs.org/api/fs.html#fspromisesrmpath-options