3 ftpfs \- file transfer protocol (FTP) file system
36 dials the TCP file transfer protocol (FTP) port, 21, on
38 and mounts itself (see
44 to provide access via FTP to files on the remote machine.
46 attempts to use FTP's `passive' mode
47 but falls back to using `active' mode if that fails.
48 If required by the remote machine,
52 for a key matching the pattern
55 proto=pass service=ftp server=\fIsystem\fP user? !password? \fIkeyspec\fP
60 does not have such a key,
62 will prompt the user for one.)
68 conventionally offer guest/read-only access to
70 Anonymous FTP may be called without using factotum
73 option and specifying the
76 By default the file seen at the mount point is the user's
77 remote home directory if he has one.
80 forces the mount point to correspond to the
84 forces the mount point to correspond to the
88 To avoid seeing startup messages from the server use option
90 To see all messages from the server use option
93 By default ftpfs only caches while a file operation is in progress. The
95 flag enables caching, increasing performance but allowing outdated file and directory data to persist.
97 Some systems will hangup an ftp connection that has no activity
98 for a given period. The
100 option causes ftp to send a NOP command every 15 seconds to attempt
101 to keep the connection open. This command can cause some servers to
102 hangup, so you'll have to feel your way.
108 to negotiate TLS encryption with the server.
110 To terminate the connection,
116 Since there is no specified format for metadata retrieved
117 in response to an FTP directory request,
119 has to apply heuristics to steer the interpretation. Sometimes,
120 though rarely, these heuristics fail. The following options are
121 meant as last resorts to try to steer interpretation.
123 A major clue to the heuristics is the operating system at the other
124 end. Normally this can be determined automatically using the
125 FTP SYST command. However, in some cases the server doesn't implement
126 the SYST command. The
128 option will force the case by specifying the name of the operating
129 system. Known system types are:
143 Some systems and/or FTP servers return directory listings that don't
144 include the file extension. The
146 option allows the user to specify an extension to append to all
147 remote files (other than directories).
149 Finally, there are two FTP commands to retrieve the contents of a
150 directory, LIST and NLST. LIST is approximately equivalent to
155 normally uses LIST. However, some FTP servers interpret LIST
156 to mean, give a wordy description of the file.
158 normally notices this and switches to using NLST. However, in
159 some rare cases, the user must force the use of NLST with the
163 You want anonymous FTP access to the system
164 .BR export.lcs.mit.edu .
167 command is only necessary if your machine does not have access to the
168 desired system, but another, called
170 in this example, does.
174 ftpfs -a yourname@yourmachine export.lcs.mit.edu
177 .B /sys/src/cmd/ip/ftpfs
181 Symbolic links on remote Unix systems will always have mode 0777
184 After connecting to a TOPS-20 system, the mount point will contain
185 only one directory, usually
186 .BR /n/ftp/PS:<ANONYMOUS> .
187 However, walking to any valid directory on that machine will succeed
188 and cause that directory entry to appear under the mount point.
190 If caching is active, remote
191 changes that have been cached will not be visible.
192 Attempting to walk to
193 .IB directory /.flush.ftpfs
196 from the cache, thus forcing
200 There is no way to issue the appropriate commands to handle special synthetic
201 FTP file types such as directories
202 that automatically return a
209 of files being transferred,
210 so its effects might not be immediate.
211 If there is enough main memory, you might want to run
215 Filenames containing spaces will confuse
217 (and other FTP clients).