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 Some systems will hangup an ftp connection that has no activity
94 for a given period. The
96 option causes ftp to send a NOP command every 15 seconds to attempt
97 to keep the connection open. This command can cause some servers to
98 hangup, so you'll have to feel your way.
104 to negotiate TLS encryption with the server.
106 To terminate the connection,
112 Since there is no specified format for metadata retrieved
113 in response to an FTP directory request,
115 has to apply heuristics to steer the interpretation. Sometimes,
116 though rarely, these heuristics fail. The following options are
117 meant as last resorts to try to steer interpretation.
119 A major clue to the heuristics is the operating system at the other
120 end. Normally this can be determined automatically using the
121 FTP SYST command. However, in some cases the server doesn't implement
122 the SYST command. The
124 option will force the case by specifying the name of the operating
125 system. Known system types are:
139 Some systems and/or FTP servers return directory listings that don't
140 include the file extension. The
142 option allows the user to specify an extension to append to all
143 remote files (other than directories).
145 Finally, there are two FTP commands to retrieve the contents of a
146 directory, LIST and NLST. LIST is approximately equivalent to
151 normally uses LIST. However, some FTP servers interpret LIST
152 to mean, give a wordy description of the file.
154 normally notices this and switches to using NLST. However, in
155 some rare cases, the user must force the use of NLST with the
159 You want anonymous FTP access to the system
160 .BR export.lcs.mit.edu .
163 command is only necessary if your machine does not have access to the
164 desired system, but another, called
166 in this example, does.
170 ftpfs -a yourname@yourmachine export.lcs.mit.edu
173 .B /sys/src/cmd/ip/ftpfs
177 Symbolic links on remote Unix systems will always have mode 0777
180 After connecting to a TOPS-20 system, the mount point will contain
181 only one directory, usually
182 .BR /n/ftp/PS:<ANONYMOUS> .
183 However, walking to any valid directory on that machine will succeed
184 and cause that directory entry to appear under the mount point.
187 caches files and directories. A directory will fall from the cache
188 after 5 quiescent minutes or if the local user changes the
189 directory by writing or removing a file.
191 changes to the directory that occur after the directory has
192 been cached might not be immediately visible.
193 Attempting to walk to
194 .IB directory /.flush.ftpfs
197 from the cache, thus forcing
201 There is no way to issue the appropriate commands to handle special synthetic
202 FTP file types such as directories
203 that automatically return a
210 of files being transferred,
211 so its effects might not be immediate.
212 If there is enough main memory, you might want to run
216 Filenames containing spaces will confuse
218 (and other FTP clients).