I'd like to find all files from specific directory using python.
I've checked Alfresco Core API, first I found my desired folder with /queries/nodes, then I tried to check it's contents with /nodes/{nodeId}/children. But it returns all stored folders in that directory.
Any alternatives to :
for root, dirs, files in os.walk("/"): for d in dirs: if specific_folder in d: for f in files:
Not sure to understand your requirement, but you may try using CMIS protocol:
https://chemistry.apache.org/python/cmislib.html
cmislib is unauthorized. I can only use Alfresco core api or search api.
I want just to download all files from specific folders.
For search API use query with path and type, for example:
(PATH:'/app:company_home/st:sites/cm:yoursite/cm:documentLibrary//*') AND (+TYPE:'cm:content') AND (<your query for documents>)
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.