Topic "Error al intentar listar al directorio"

Author Message
dlopez
[View user's profile]

Joined: 2017-02-13
Posts: 3
Buenos días,
Les detallo un poco el problema que estoy teniendo.

Uso del aplicativo Winscp 5.7.7, con el cual me conecto a un servidor SFTP, cuya descarga de datos lo hago mediante un batch, cuya parte contiene winscp.exe /console /script=xxx.txt /log=log.txt.
El problema viene, cuando ejecuto el .batch. A listar una de las carpetas ocultas, cancela automáticamente la descarga de datos. Les adjunto el .log de lo que devuelve.

Alguien me podrá dar una mano con este tema?
Gracias

. 2017-02-13 09:13:32.489 Collecting synchronization list for local directory 'C:\WinSCP\Binarios\.historico' and remote directory '/home/XXXXXX/.historico', mode = Local, params = 0x2 (NoConfirmation)
. 2017-02-13 09:13:32.490 Local file 'C:\WinSCP\Binarios\.historico\.' [2017-02-07T13:28:42.837Z] [0] excluded from synchronization
. 2017-02-13 09:13:32.490 Local file 'C:\WinSCP\Binarios\.historico\..' [2017-02-07T13:28:42.837Z] [0] excluded from synchronization
. 2017-02-13 09:13:32.490 Listing directory "/home/XXXXXX/.historico".
> 2017-02-13 09:13:32.490 Type: SSH_FXP_OPENDIR, Size: 38, Number: 23563
< 2017-02-13 09:13:32.490 Type: SSH_FXP_STATUS, Size: 24, Number: 23300
. 2017-02-13 09:13:32.490 Discarding reserved response
< 2017-02-13 09:13:32.496 Type: SSH_FXP_STATUS, Size: 34, Number: 23563
< 2017-02-13 09:13:32.496 Status code: 3, Message: 23563, Server: Permission denied, Language:
. 2017-02-13 09:13:32.496 Asking user:
. 2017-02-13 09:13:32.496 Error al intentar listar al directorio «/home/XXXXXX/.historico». ("Permiso denegado
. 2017-02-13 09:13:32.496 Código de Error: 3
. 2017-02-13 09:13:32.496 Mensaje de error desde el servidor : Permission denied")
< 2017-02-13 09:13:32.496 Script: Error al intentar listar al directorio «/home/XXXXXX/.historico».
< 2017-02-13 09:13:32.496 Script: Permiso denegado
< 2017-02-13 09:13:32.496 Código de Error: 3
< 2017-02-13 09:13:32.496 Mensaje de error desde el servidor : Permission denied
. 2017-02-13 09:13:32.503 Script: Failed
. 2017-02-13 09:13:32.503 Script: Exit code: 1
. 2017-02-13 09:13:32.503 Closing connection.
. 2017-02-13 09:13:32.503 Sending special code: 12
. 2017-02-13 09:13:32.503 Sent EOF message
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26554
Location: Prague, Czechia
Exclude the folder from the transfer:
synchronize -filemask=|.historico/ ...
dlopez
[View user's profile]

Joined: 2017-02-13
Posts: 3
martin wrote:
Exclude the folder from the transfer:
synchronize -filemask=|.historico/ ...



El script que uso es este:

option batch abort
option confirm off
#
option transfer binary
synchronize local
close
exit
#


El agregado que mencionas debería de ir en "synchronize local -filemask=|.historico/"?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26554
Location: Prague, Czechia
That's correct.
dlopez
[View user's profile]

Joined: 2017-02-13
Posts: 3
martin wrote:
That's correct.


Lo acabo de configurar al script pero no funciona. Devuelve el mismo error.

Hay alguna otra manera de omitirlo?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26554
Location: Prague, Czechia
Show us a log file.
Advertisements

You can post new topics in this forum






Search

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License