RoyTheunissen / Asset-Palette

Allows you to quickly organize assets for certain workflows, such as organizing prefabs for level design.
MIT License
119 stars 11 forks source link

Cannot create asset because it is a directory #22

Closed leorid closed 1 year ago

leorid commented 1 year ago

As the title says, I get this error in 2022.2.2f1

To fix, change Line 242 in "AssetPaletteCollectionEditor.cs" from

Directory.CreateDirectory(path); To Directory.CreateDirectory(Path.GetDirectoryName(path));

RoyTheunissen commented 1 year ago

Hey @leorid ! Thank you for reporting this issue, sorry for my delayed response. I'm having a hard time filtering out notifications that are truly meaningful, but I think I improved that and will be more responsive from now on.

I just merged a PR that addresses this issue. Hope it improves things for you.