For those coming from Google, you probably don't have the permissions to a directory. chown user:user folder and add -R to propagate it in subdirectories.
chown user:user folder
-R
@AirOne01 mentioned chmod but I used chown so I have the permissions.
chmod
chown