platform: Add shell support for iOS

This commit is contained in:
世界
2026-08-30 17:41:41 +08:00
parent 3d237fed39
commit 5d7a0d92c6
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()
}