I am new to webextensions, and I am having trouble following the documentation.
What is the way to access file metadata such as file size for a file stored on disk?
I see there is Mozilla documentation on OS.File modules, with features such as OS.File.Info, OS.File.Error, and OS.Path, which look like they would be exactly what is necessary, but it is not clear from the documentation whether use of these is being deprecated, or is instead being carried over into webextensions.
If methods using these are in fact appropriate going forward with webextensions, can someone explain (or point me to documentation on) how to import or access the modules for use in a background script?
A stackoverflow Q/A from a year ago seems to indicate that the modules are being deprecated, but maybe webextensions functionality has improved since then?