After looking at the method(s) in more detail, we're going to have to tweak these methods a little. The idea I had was that we would grab the name of the file which would be a property in Asset class.
Filename from the href: GEDI_L4A_AGB_Density_V2_1/data/GEDI04_A_2023075201011_O24115_02_T08796_02_003_01_V002.h5
When a user does pin the content, we could pass the filename property into the name argument for pin/add. Doing so will be a nice quality of life update when the user runs the method pinned_list(name=True) as it will list out the link name along with the cid
getAssetFromItem comments:
After looking at the method(s) in more detail, we're going to have to tweak these methods a little. The idea I had was that we would grab the name of the file which would be a property in
Asset
class.for example, json for the asset
SAA
:I was hoping to grab the file name from the
href
property:LC09_L1GT_017039_20221029_20221029_02_T2_SAA.TIF
and for GEDI:
Filename from the href:
GEDI_L4A_AGB_Density_V2_1/data/GEDI04_A_2023075201011_O24115_02_T08796_02_003_01_V002.h5
When a user does pin the content, we could pass the filename property into the
name
argument for pin/add. Doing so will be a nice quality of life update when the user runs the methodpinned_list(name=True)
as it will list out the link name along with the cid