Uploading plugin 4.20 and a directory is exctract as a file

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
Hi,

I am working on a plugin and till version 4.10 it works fine.
With version 4.20 when I upload it my Script directory, which contains one file, is extract firstly as a file, and after that when extraction of my js file try to create directory scripts it says that the file or directory is already created.
I can see in the destination directory Scripts is created as file.
But same package works fine for 4.10

Using 7zip to zip/unzip on my machine. Manual unzipping looks fine and no errors.

Any suggestions?


Regards,
Boris
4 years ago
It looks my problem comes from the new implementation of NopFileProvider.

In nopCommerce v4.10 Combine method used directly Path.Combine which returned fine result.

My problem comes with version 4.20 where it looks when the path is created the directory name of "Scripts" folder no more ends to "//" which cause the problem that is treat as a file and firstly created as file.

My host machine is Win10.
https://i.ibb.co/B25J6LK/Nop-File-Provider.jpg
4 years ago
Done. Please see this commit for more details
4 years ago
It works now.

Thanks
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.