11-16-2018 01:28 AM
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
11-16-2018 02:42 AM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.