You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to get path on datastore from input dataset instead of pathOnCompute(mount path) #1965
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
changed the title [-]How to get datastore path from input dataset instead of pathOnCompute(mount path)[/-][+]How to get path on datastore from input dataset instead of pathOnCompute(mount path)[/+]on Jun 22, 2024
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()
Activity
[-]How to get datastore path from input dataset instead of pathOnCompute(mount path)[/-][+]How to get path on datastore from input dataset instead of pathOnCompute(mount path)[/+]ali713111 commentedon Jun 25, 2024
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()