Actually I guess it should, since there’s nothing you can do with the file after the commit. It’s a bit silly to require the manual close in that particular case.
Also, I just noticed that I’m not calling close()
in the example in the docs either.
Yeah, you could definitely do some string manipulation in JavaScript. The asset.fileName
property gives you the full absolute file path.