wiso bekomme ich bei SFTP keine Verzeichnisanzeige wie bei FTP.
Code: Alles auswählen
If OpenFTP(0, "sftp://192.168.3.200", "admin","nonono",#True,2002)
Debug "sftp: Erfolgreich verbunden"
Debug GetFTPDirectory(0)
If ExamineFTPDirectory(0)
Debug NextFTPDirectoryEntry(0)
While NextFTPDirectoryEntry(0)
Debug FTPDirectoryEntryRaw(0)
Wend
FinishFTPDirectory(0)
EndIf
CloseFTP(0)
Else
Debug "Konnte keine sftp: Verbindung aufbauen."
EndIf
If OpenFTP(0, "ftp://192.168.3.200", "admin","nonono",#True,2001)
Debug "ftp: Erfolgreich verbunden"
Debug GetFTPDirectory(0)
If ExamineFTPDirectory(0)
Debug NextFTPDirectoryEntry(0)
While NextFTPDirectoryEntry(0)
Debug FTPDirectoryEntryRaw(0)
Wend
FinishFTPDirectory(0)
EndIf
CloseFTP(0)
Else
Debug "Konnte keine ftp: Verbindung aufbauen."
EndIf
Code: Alles auswählen
sftp: Erfolgreich verbunden
/
1
ftp: Erfolgreich verbunden
/
1
drwxrwxrwx 1 root root 4096 Jan 15 14:54 TEST
drwxrwxrwx 1 root root 12288 Aug 12 2024 Transfer
drwxrwxrwx 1 root root 4096 Feb 1 14:36 web
Danke