Netfiles, netfileget, netfileput, netfilestat - network file access inside acme
] system path
netfileput system path
netfilestat system path
presents remote file systems in acme
(4) windows. Each
window is named /n/system/path
and displays the
contents of path
reads names of windows to create from the plumbing channel
(4) and the example section below). In a
-controlled window, Get
, and button 3 loads
work as in normal acme windows. External commands executed with button 2 run
in the directory in which acme
uses the helper programs netfileget
to access the remote file systems. The three first
check to see if system
is a service in the current name space (see
(4)). If so, they use 9p
(1) to access it. Otherwise, they
assume that the system is a network name and use ssh
to access it.
prints the contents of the named path
output. If the -d
option is given, then netfileget
single-column listing of path
, which must be a directory. Directories
in the listing have appended to their names.
writes its standard input to the named path
prints the file type of path
, one of
, or file
The following plumbing rule (see plumb
(7)) passes /n/
, starting it if necessary.
# /n/ paths go to simulator in acme
kind is text
data matches '[a-zA-Z0-9_\-./]+('$addr')?'
data matches '(/n/[a-zA-Z0-9_\-./]+)('$addr')?'
plumb to netfileedit
plumb client Netfiles
depends on sftpcache
(1), which only works with OpenSSH
versions 4.3 and earlier; later versions do not print the sftp>
prompt frequently enough.