Hi.
I have a question about how to create a directory local to the server during bootstrap.
I am currently developing an add-on. I thought it would be more convenient to create a separate directory to do the work in that, so I want to create a directory when the add-on is deployed.
When you install and launch Alfresco Content Services for the first time, the following directories will be created first.
Is there a way to do this with add-ons?
Solved! Go to Solution.
Addons typically do not have to do any work in the local server file system (apart from temporary files via the TempFilesProvider), it is quite uncommon for addons to create new directories on bootstrap, and as such, there is no common / standard way. Generally though, you'd just need to write a custom (Java) module component to create a directory using Java File API.
Addons typically do not have to do any work in the local server file system (apart from temporary files via the TempFilesProvider), it is quite uncommon for addons to create new directories on bootstrap, and as such, there is no common / standard way. Generally though, you'd just need to write a custom (Java) module component to create a directory using Java File API.
Hi afaust
Thank you for your comment.
With your advice in mind, I was able to achieve my goal by creating a Module Component.
Add-ons is the place to find extensions, Alfresco customizations and related projects for your installation.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.