blob: f1425a8e791b92df82db58b2263868a2f7bee80c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
<html>
<head>
<title>ftp Library Package 2.1 for Tcl/Tk help file</title>
</head>
<body bgcolor="#ffffff" text="#000000">
<body>
<p>
<dl>
<dd>
<p><font face="Arial,Helvetica" color="#526e9c" size="+2"><b>ftp Library Package 2.1 for Tcl/Tk Manual Pages</b></font></p>
</dd>
<dd><font face="Arial,Helvetica" size="+1"><b>COMMAND</b></font></dd>
<dd><dl>
<dd><b>ftp::Delete</b><em> handle file</em></dd>
<dd> </dd>
<dd>
The <b>ftp::Delete</b> command deletes the specified file on the ftp
server. The command returns 1 if the specified file can be
successfully deleted or 0 if it fails.
<p>
</dd>
</dl></dd>
<dd><font face="Arial,Helvetica" size="+1"><b>EXAMPLE</b></font></dd>
<dd><dl>
<dd>
<pre># delete file
if {![ftp::Delete $conn index.htm]} {
puts "File couldn't be deleted!"
}
# delete all like "rm *"
foreach file [ftp::NList $conn] {
ftp::Delete $conn $file
}
</pre>
</dd>
</dl></dd>
</dl>
</p>
<p>
[<a href="index.html">Contents</a>]
[<b>Previous:</b> <a href="fhelp9.html">ftp::ModTime</a>]
[<b>Next:</b> <a href="fhelp11.html">ftp::Rename</a>]
</p>
<p align="left"><hr noshade size="1"><font face="Arial,Helvetica" size="-1">© 1999 <a href="mailto:Steffen.Traeger@t-online.de">Steffen Traeger</a></font></p>
</body>
</html>
|