Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

188
Vistas
upload whole folder to s3 using cli

Hi i am trying to move all folders from my local machine to S3 bucket, but seem S3 only move files and create folder in S3, leave folder empty in my local machine, so how can move whole folder to S3 or clean my local folder after uploading, command i was using it

aws s3 mv . s3://bucketname/Upload/ --recursive
about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Thanks for everyone who comment or answer, i fix issue with creating power shell script delete any empty folder after move files

Set-Location -Path C:\upload-PassThru
Invoke-Expression "aws s3 mv . s3://bucket_name --recursive"
$rootPath = "C:\upload\"
foreach($childItem in (Get-ChildItem $rootPath -Recurse))
{
    # if it's a folder AND does not have child items of its own
    if( ($childItem.PSIsContainer) -and (!(Get-ChildItem -Recurse -Path $childItem.FullName)))
    {
        # Delete it
        Remove-Item $childItem.FullName -Confirm:$false
    }
}
about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda