ci(host-boundary): allow the local stat on paste/drop upload sources

#1004 stats the source of a paste or drop upload to decide whether to
upload recursively. That path comes from this machine's clipboard or
desktop, so it is a local read by construction.
This commit is contained in:
l0ng-ai
2026-09-28 21:25:51 +08:00
parent afe24f0afc
commit 5e2b28be67
+5
View File
@@ -92,6 +92,11 @@ src/terminal/search.rs|.is_absolute()
# can be handed a path. Always `std::env::temp_dir()` on this machine.
src/terminal/view.rs|std::fs::create_dir_all
src/terminal/view.rs|std::fs::write
# The source side of a paste/drop upload into a remote pane: the paths the
# clipboard or desktop hands over are on this machine by construction, so
# asking whether one is a directory is a local read. The remote side of the
# copy goes over SFTP.
src/terminal/view.rs|std::fs::metadata
# Asking whether a file would be *launched* rather than shown before handing it
# to the desktop opener. Only reachable behind `host_id.is_local()` — a path on