When using the ZipFileBlobStorage WriteAsync function it puts a "\" in front of the name of the entry. It doesn't matter if it's a file or a folder, it will always do it.
i think the bug is in StoragePath.Normalize(string, bool) it's called by the ZipFileBlobStorage with the bool set to false which makes it return the path prefixed with the PathSeparatorString (which is "\").
I have created my own ZipFileBlobStorage and copied yours in it, the only change i made is that i commented out the call to StoragePath.Normalize(string, bool). This fixed the bug and the folders/files are then created with the correct name.
With call to StoragePath.Normalize(string, bool)
Without call to StoragePath.Normalize(string, bool)
Hi,
When using the ZipFileBlobStorage WriteAsync function it puts a "\" in front of the name of the entry. It doesn't matter if it's a file or a folder, it will always do it.
i think the bug is in StoragePath.Normalize(string, bool) it's called by the ZipFileBlobStorage with the bool set to false which makes it return the path prefixed with the PathSeparatorString (which is "\").
I have created my own ZipFileBlobStorage and copied yours in it, the only change i made is that i commented out the call to StoragePath.Normalize(string, bool). This fixed the bug and the folders/files are then created with the correct name.
With call to StoragePath.Normalize(string, bool)![image](https://github.com/robinrodricks/FluentStorage/assets/23342425/f003e8ef-cd5f-4481-a52a-7f23660ecd74)
Without call to StoragePath.Normalize(string, bool)![image](https://github.com/robinrodricks/FluentStorage/assets/23342425/0398d3f8-90f1-4182-b4c1-bcf4dede35cf)