Discover the winners & finalists of the 2022 Dataiku Frontrunner Awards!READ THEIR USE CASES

Interact with Static Web Resources (Global Shared Code) inside a Python Recipe

Talb27
Level 1
Interact with Static Web Resources (Global Shared Code) inside a Python Recipe

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

0 Kudos
1 Reply
fchataigner2
Dataiker

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 

0 Kudos