简体   繁体   中英

Azure Blob Storage Java SDK 12 extract file name from blob name

let's say I have blob structure like this:

That's OK, but in some point I need to get the <file_name><\/code> part.

I could do it myself but it's hard to believe that SDK doesn't provide this functionality... Maybe you guys know different elegant way to do so? How do you usually handle such things?

You just do:

blobName.replaceFirst("^/dir0/dir1/", "")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM