Get a path to a S3 managed folder + files

hugobec
hugobec Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1
edited July 16 in Using Dataiku

Hi,

Is there a way to access a file located in a S3 Managed folder from a path or url ? I would like to send some figures to an external software, and I need an absolute path to the file.

I know how to access the relative path of the file inside the folder using list_paths_in_partition

from dataiku.core.managed_folder import Folder

folder = Folder(folder_id)
folder.upload_stream("test.txt", 'some text')

print(folder.list_paths_in_partition()[-1])

Which returns /test.txt

But I would also like to get the folder path, getting something like link_to_dss/project/folder/test.txt

Is there a way to get this link, or any other way to access the contents of the folder from a path ?

Thanks by advance

Answers

  • JordanB
    JordanB Dataiker, Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 297 Dataiker

    Hi @hugobec
    ,

    I recommend using the S3 folder/file path provided by AWS. You cannot generate a link from DSS to access managed folder contents from an external source.

    Please let us know if you have any further questions.

    Thanks!

    Jordan

Setup Info
    Tags
      Help me…