# Uploading/Downloading directory with scp

## post by Leo on Jul 8, 2023

Is there a way I can upload directories using scp. I’m new to this but have found numerous sources that recommend using -r flag to upload a directory. But for some reason I don’t have permission to do this and end up having to waste time by uploading files individually. Anyone know why this might be the case?

## post by yanos on Jul 13, 2023

Hello Leo,

Uploading or downloading directories with SCP using the -r flag should work fine.

Can you send the command you run and the error output you get?

If you prefer you can open a ticket here: [https://support.lambdalabs.com](https://support.lambdalabs.com/)

Best,

Yanos

## post by Leo on Jul 14, 2023

Hi Yanos,

Thanks for the response I’ve actually managed to figure this out. I was just making a silly syntax error. So this has been resolved now thanks!

Best,

Leo
