Getting "Can not download app" when trying to enable a local app

I modified a nextcloud app to change parts of to how my server works, and when i try to put the app into the apps folder and enable it, it shows “can not download app”, I have no clue why it is trying to download anything as all of the files are in the folder already, can anyone help?

Hello. The enabling of apps will download them if the app is not found for some reason as a fallback.

I have seen such behaviors if the app is not in the correct folder or not completely built (is there some composer or npm stuff to be built?) Check the folder name. Also be careful with the case. If you cloned from git, the repo name is not always the name of the app.