1Net::FTPServer::DirHandUlsee(r3)Contributed Perl DocumenNteatt:i:oFnTPServer::DirHandle(3)
2
3
4
6 Net::FTPServer::DirHandle - A Net::FTPServer directory handle.
7
9 use Net::FTPServer::DirHandle;
10
12 $dirh = new Net::FTPServer::DirHandle ($ftps);
13 Create a new directory handle. The directory handle corresponds to
14 "/".
15
16 $dirh = $dirh->parent;
17 Return the parent directory of the directory $dirh. If the
18 directory is already "/", this returns the same directory handle.
19
20 $rv = $dirh->is_root;
21 Return true if the current directory is the root directory.
22
23 $handle = $dirh->get ($filename);
24 Return the file or directory $handle corresponding to the file
25 $filename in directory $dirh. If there is no file or subdirectory
26 of that name, then this returns undef.
27
28 $ref = $dirh->list ([$wildcard]);
29 Return a list of the contents of directory $dirh. The list returned
30 is a reference to an array of pairs:
31
32 [ $filename, $handle ]
33
34 The list returned does not include "." or "..".
35
36 The list is sorted into alphabetical order automatically.
37
38 $ref = $dirh->_list_status ([$wildcard]);
39 Just a dumb wrapper function. Returns the same thing as
40 list_status(), but also includes the special directories "." and
41 ".." if no wildcard is specified.
42
43 $ref = $dirh->list_status ([$wildcard]);
44 Return a list of the contents of directory $dirh and status
45 information. The list returned is a reference to an array of
46 triplets:
47
48 [ $filename, $handle, $statusref ]
49
50 where $statusref is the tuple returned from the "status" method
51 (see Net::FTPServer::Handle).
52
53 The list returned does not include "." or "..".
54
55 The list is sorted into alphabetical order automatically.
56
57 $rv = $dirh->delete;
58 Delete the current directory. If the delete command was successful,
59 then return 0, else if there was an error return -1.
60
61 It is normally only possible to delete a directory if it is empty.
62
63 $rv = $dirh->mkdir ($name);
64 Create a subdirectory called $name within the current directory
65 $dirh.
66
67 $file = $dirh->open ($filename, "r"|"w"|"a");
68 Open or create a file called $filename in the current directory,
69 opening it for either read, write or append. This function returns
70 a "IO::File" handle object.
71
73 Richard Jones (rich@annexia.org).
74
76 Copyright (C) 2000 Biblio@Tech Ltd., Unit 2-3, 50 Carnwath Road,
77 London, SW6 3EG, UK
78
80 Net::FTPServer(3), perl(1)
81
82
83
84perl v5.28.0 2012-11-12 Net::FTPServer::DirHandle(3)