aelvan / Imager-Craft

This plugin has been DEPRECATED. Check out Imager X instead.
MIT License
342 stars 69 forks source link

Create source folder if it doesn't exist. #293

Closed timrosskamp closed 4 years ago

timrosskamp commented 4 years ago

Hey,

we get the following error on a regular basis: Source folder “...” does not exist. This is caused, because that folder is excluded from our git repository. So when people clone the repo to their local machine, they are missing the source folder.

The error makes perfect sense to me, but I thought it would maybe be possible to just create the missing folder to avoid that error and if that fails as well you can still throw an error "source folder is missing and could not be created". Or is there a reason for this, I'm not aware of?

It's definitly not a major issue and can easily be fixed manually, but I thought it would just be nice to have and could avoid confusion for new users.

aelvan commented 4 years ago

Well, I can of course try to create it like I do with the target folder but.. If the source folder does not exist, the source files are not there either. So you'll just get an error about the file you're trying to transform is missing? So it doesn't get you anywhere. Unless I completely misunderstood what you meant..?

timrosskamp commented 4 years ago

Yeah, you're right. Creating the folder would not solve the problem. Even if I create it manually, I would the the source files itself as well. A programmatic solution is not possible.