RootDirectory.custom constructor
Create a RootDirectory set based on your own custom directory
This should only be used under special circumstances. Ensure that your application has full access to the directory, or permission errors will occur. You should ensure that the path is suitable for storing only FMTC related data.
Construction via this method automatically calls RootManagement.create before returning (by default), so the caching directories will exist unless deleted using RootManagement.delete. Disable this initialisation by setting autoCreate
to false
.
Implementation
RootDirectory.custom(
this.rootDirectory, {
bool autoCreate = true,
}) {
if (autoCreate) manage.create();
}