Changing the directory where screenshots are saved on macOS

Open the screenshot application by pressing command + shift + 5

Choose options and in the “save to” choose one of the predefined folders or choose other location.