Why does a blob with filename $$$.$$$ appear in Azure directory listing?

北战南征 提交于 2019-12-11 06:30:02

问题


Does anyone know why when I list a blobs in a directory like this:

var container = BlobClient.GetContainerReference(containerName);
var blobs = container.GetDirectoryReference(fileStroageLocation).ListBlobs().ToList();

I find the two files I uploaded and an additional blob with the filename $$$.$$$. If I use an Azure file storage browser CloudXplorer I don't see the file.

I can filter it out by ignoring that filename however. Just wondered why it was there? If there is special meaning to it? How it got created? If there is a better way to exclude. Google doesn't seem very helpful when searching for "$$$.$$$"!

Thanks

Graeme


回答1:


I don't remember which, but some storage tools create that file as a placeholder when you create directories in their UI. Because blob storage doesn't have a concept of a directory, there's no way to create container/dir, so some tools create container/dir/$$$.$$$ instead.

If CloudXplorer isn't showing you the file, my guess is CloudXplorer is the tool that created it.



来源:https://stackoverflow.com/questions/10445830/why-does-a-blob-with-filename-appear-in-azure-directory-listing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!