Hi everyone,
I use this following comand line to import documents and their metadata in alfresco
curl -v -u admin:admin -L POST --url "localhost:8080/alfresco/s/bulkfsimport/initiate" --data "targetPath=/Sites/test/documentLibrary&sourceDirectory=/tmp/test&existingFileMode=REPLACE"
It works fine but I'd like to know if there is an option which delete pdf and xml files once they've been imported.
All of my pdf and xml files will be automaticaly uploaded in the folder /tmp/test and this comand line will be used in a batch and a cron. I have to delete the files that have already been imported in the application.
Thanks in advance
After a standard bulk import you need to clean manually your PDF and XML files (for example, via crontab and find / rm commands in linux). In Enterprise edition, you can use inplace bulks (in this case you may need to delete not the PDF but XML files).
Regards.
--C.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
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.