Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
Hi ,
I am looking to access a file from File repository in twx , using below script.
i need Source Directory , source file name to be mentioned from Twx custom file repository to run this code.
Thanks,
Solved! Go to Solution.
And your specific file can be stored anywhere in File Repository, it does not need to be in the root, correct? If that's correct then I believe you have to first get all the directories and then loop through to get all the file links. Once you have that, you can pick your file name from it and the associated link. This has already been discussed here:
Let me know if my understanding is not correct, if that's the case I would request you to elaborate more.
Thanks,
Mukul Narang
you can browse a ThingWorx repository using "BrowseDirectory" or "BrowseFileSystem" service in your repository. Using these services you can get all the directories and files (with name and path) available in your repository.
Hi @Mukul
I need to see the path of the specific file which is stored in File Repository, if we try to execute "BrowseDirectory" or "BrowseFileSystem" services
service itself need PATH as input.
Thanks,
And your specific file can be stored anywhere in File Repository, it does not need to be in the root, correct? If that's correct then I believe you have to first get all the directories and then loop through to get all the file links. Once you have that, you can pick your file name from it and the associated link. This has already been discussed here:
Let me know if my understanding is not correct, if that's the case I would request you to elaborate more.
Thanks,
Mukul Narang