Sembra che devi usare il ls
Metodo come così:
sftp.ls(".*")
Per ottenere i file "nascosti".
Domanda
Sto cercando di elencare tutti i file su un sistema remoto. Per fare ciò, ho usato un canale SFTP per quel sistema. JCraft Channel SFTP fornisce un metodo LS che restituisce un elenco di file e cartelle, ma non i file/cartella nascosti (a partire da A ".").
C'è un modo per fare questo?
Grazie
Soluzione
Sembra che devi usare il ls
Metodo come così:
sftp.ls(".*")
Per ottenere i file "nascosti".