platform: Add shell support for iOS

This commit is contained in:
世界
2026-06-10 19:36:14 +08:00
parent dcbb8271f8
commit c2da94f252
5 changed files with 13 additions and 10 deletions
+5 -2
View File
@@ -31,6 +31,9 @@ func (iosShellBackend) Close() error {
return nil
}
func lookupSFTPServer(_ adapter.PlatformInterface) (string, error) {
return "", E.New("sftp is not supported on iOS and tvOS")
func lookupSFTPServer(platformInterface adapter.PlatformInterface) (string, error) {
if platformInterface == nil {
return "", E.New("sftp is not supported on iOS and tvOS")
}
return platformInterface.LookupSFTPServer()
}