MachineLearningNotebooks icon indicating copy to clipboard operation
MachineLearningNotebooks copied to clipboard

How to get path on datastore from input dataset instead of pathOnCompute(mount path)

Open jfan0214 opened this issue 1 year ago • 1 comments

I would like to get the datastore path e.g. datastores/storepath/paths/shares/... instead of pathOnCompute from my inputDataSet. What API should I use? I tried the following but none of them work:

paths = input_dataset.to_path() //the to_path() only get the file name list, it doesn't contain the path

get_details() only contains pathOnCompute as well

Thanks for your input

jfan0214 avatar Jun 22 '24 05:06 jfan0214

you can use as_download or as_mount path = input_dataset.to_path(workspace, name='your_dataset_name_xyz') path = input_dataset.as_mount() mount_context.start()

Get the datastore path

datastore_path = input_dataset.datastore.path('your_dataset_name').as_mount()

ali713111 avatar Jun 25 '24 16:06 ali713111