Interact with Static Web Resources (Global Shared Code) inside a Python Recipe
Talb27
Dataiku DSS Core Designer, Registered Posts: 3 ✭✭✭
Hi,
I'm currently trying to interact with the files in my Static Web Resources through a Python Recipe. But so far I couldn't find any code to help me with that
This recipe has a folder with images as an input. The idea is to verify if a copy of each image already exists in Static Web Resources and if it does not exist it needs to be created/copied.
Thanks in advance,
Tomás
Operating system used: Windows 10
Tagged:
Answers
-
Hi,
fetching or probing for a file in the static web resources can simply be done by a HTTP call (to http://localhost:port_of_dss/local/static/the/path/to/the/file ). Uploading data in there can at the moment only be done by the UI, or if you're admin of the instance, manually putting files in the local/static folder in the DSS data directory