1Gnome2::VFS::URI(3) User Contributed Perl Documentation Gnome2::VFS::URI(3)
2
3
4
6 Gnome2::VFS::URI
7
9 Glib::Boxed
10 +----Gnome2::VFS::URI
11
13 uri = Gnome2::VFS::URI->new ($text_uri)
14
15 * $text_uri (string)
16
17 uri = $base->append_file_name ($filename)
18
19 * $filename (string)
20
21 uri = $base->append_path ($path)
22
23 * $path (string)
24
25 uri = $base->append_string ($uri_fragment)
26
27 * $uri_fragment (string)
28
29 list = $source_uri->check_same_fs ($target_uri)
30
31 * $target_uri (Gnome2::VFS::URI)
32
33 Returns a GnomeVFSResult and a boolean.
34
35 list = $uri->create ($open_mode, $exclusive, $perm)
36
37 * $open_mode (Gnome2::VFS::OpenMode)
38 * $exclusive (boolean)
39 * $perm (integer)
40
41 Returns a GnomeVFSResult and a GnomeVFSHandle.
42
43 boolean = $a->equal ($b)
44
45 * $b (Gnome2::VFS::URI)
46
47 boolean = $uri->exists
48
49 string = $uri->extract_dirname
50
51 string = $uri->extract_short_name
52
53 string = $uri->extract_short_path_name
54
55 list = $uri->get_file_info ($options)
56
57 * $options (Gnome2::VFS::FileInfoOptions)
58
59 Returns a GnomeVFSResult and a GnomeVFSFileInfo.
60
61 result = $uri->set_file_info ($info, $mask)
62
63 * $info (Gnome2::VFS::FileInfo)
64 * $mask (Gnome2::VFS::SetFileInfoMask)
65
66 string = $uri->get_fragment_identifier
67
68 boolean = $uri->has_parent
69
70 string = $uri->get_host_name
71
72 $uri->set_host_name ($host_name)
73
74 * $host_name (string)
75
76 integer = $uri->get_host_port
77
78 $uri->set_host_port ($host_port)
79
80 * $host_port (integer)
81
82 boolean = $uri->is_local
83
84 boolean = $possible_parent->is_parent ($possible_child, $recursive)
85
86 * $possible_child (Gnome2::VFS::URI)
87 * $recursive (boolean)
88
89 list = Gnome2::VFS::URI->list_parse ($uri_list)
90
91 * $uri_list (string)
92
93 Returns a list of GnomeVFSURI's.
94
95 result = $uri->make_directory ($perm)
96
97 * $perm (integer)
98
99 string = Gnome2::VFS::URI->make_full_from_relative ($base_uri, $rela‐
100 tive_uri)
101
102 * $base_uri (string)
103 * $relative_uri (string)
104
105 result = $old_uri->move ($new_uri, $force_replace)
106
107 * $new_uri (Gnome2::VFS::URI)
108 * $force_replace (boolean)
109
110 list = $uri->open ($open_mode)
111
112 * $open_mode (Gnome2::VFS::OpenMode)
113
114 Returns a GnomeVFSResult and a GnomeVFSHandle.
115
116 uri = $uri->get_parent
117
118 string = $uri->get_password
119
120 $uri->set_password ($password)
121
122 * $password (string)
123
124 string = $uri->get_path
125
126 result = $uri->remove_directory
127
128 uri = $base->resolve_relative ($relative_reference)
129
130 * $relative_reference (string)
131
132 uri = $base->resolve_symbolic_link ($symbolic_link)
133
134 * $symbolic_link (string)
135
136 string = $uri->get_scheme
137
138 string = $uri->to_string ($hide_options=GNOME_VFS_URI_HIDE_NONE)
139
140 * $hide_options (Gnome2::VFS::URI::HideOptions)
141
142 result = $uri->truncate ($length)
143
144 * $length (unsigned)
145
146 result = $uri->unlink
147
148 string = $uri->get_user_name
149
150 $uri->set_user_name ($user_name)
151
152 * $user_name (string)
153
155 flags Gnome2::VFS::FileInfoOptions
156
157 * 'default' / 'GNOME_VFS_FILE_INFO_DEFAULT'
158 * 'get-mime-type' / 'GNOME_VFS_FILE_INFO_GET_MIME_TYPE'
159 * 'force-fast-mime-type' / 'GNOME_VFS_FILE_INFO_FORCE_FAST_MIME_TYPE'
160 * 'force-slow-mime-type' / 'GNOME_VFS_FILE_INFO_FORCE_SLOW_MIME_TYPE'
161 * 'follow-links' / 'GNOME_VFS_FILE_INFO_FOLLOW_LINKS'
162 * 'get-access-rights' / 'GNOME_VFS_FILE_INFO_GET_ACCESS_RIGHTS'
163 * 'name-only' / 'GNOME_VFS_FILE_INFO_NAME_ONLY'
164 * 'get-acl' / 'GNOME_VFS_FILE_INFO_GET_ACL'
165 * 'get-selinux-context' / 'GNOME_VFS_FILE_INFO_GET_SELINUX_CONTEXT'
166
167 flags Gnome2::VFS::OpenMode
168
169 * 'none' / 'GNOME_VFS_OPEN_NONE'
170 * 'read' / 'GNOME_VFS_OPEN_READ'
171 * 'write' / 'GNOME_VFS_OPEN_WRITE'
172 * 'random' / 'GNOME_VFS_OPEN_RANDOM'
173 * 'truncate' / 'GNOME_VFS_OPEN_TRUNCATE'
174
175 enum Gnome2::VFS::Result
176
177 * 'ok' / 'GNOME_VFS_OK'
178 * 'error-not-found' / 'GNOME_VFS_ERROR_NOT_FOUND'
179 * 'error-generic' / 'GNOME_VFS_ERROR_GENERIC'
180 * 'error-internal' / 'GNOME_VFS_ERROR_INTERNAL'
181 * 'error-bad-parameters' / 'GNOME_VFS_ERROR_BAD_PARAMETERS'
182 * 'error-not-supported' / 'GNOME_VFS_ERROR_NOT_SUPPORTED'
183 * 'error-io' / 'GNOME_VFS_ERROR_IO'
184 * 'error-corrupted-data' / 'GNOME_VFS_ERROR_CORRUPTED_DATA'
185 * 'error-wrong-format' / 'GNOME_VFS_ERROR_WRONG_FORMAT'
186 * 'error-bad-file' / 'GNOME_VFS_ERROR_BAD_FILE'
187 * 'error-too-big' / 'GNOME_VFS_ERROR_TOO_BIG'
188 * 'error-no-space' / 'GNOME_VFS_ERROR_NO_SPACE'
189 * 'error-read-only' / 'GNOME_VFS_ERROR_READ_ONLY'
190 * 'error-invalid-uri' / 'GNOME_VFS_ERROR_INVALID_URI'
191 * 'error-not-open' / 'GNOME_VFS_ERROR_NOT_OPEN'
192 * 'error-invalid-open-mode' / 'GNOME_VFS_ERROR_INVALID_OPEN_MODE'
193 * 'error-access-denied' / 'GNOME_VFS_ERROR_ACCESS_DENIED'
194 * 'error-too-many-open-files' / 'GNOME_VFS_ERROR_TOO_MANY_OPEN_FILES'
195 * 'error-eof' / 'GNOME_VFS_ERROR_EOF'
196 * 'error-not-a-directory' / 'GNOME_VFS_ERROR_NOT_A_DIRECTORY'
197 * 'error-in-progress' / 'GNOME_VFS_ERROR_IN_PROGRESS'
198 * 'error-interrupted' / 'GNOME_VFS_ERROR_INTERRUPTED'
199 * 'error-file-exists' / 'GNOME_VFS_ERROR_FILE_EXISTS'
200 * 'error-loop' / 'GNOME_VFS_ERROR_LOOP'
201 * 'error-not-permitted' / 'GNOME_VFS_ERROR_NOT_PERMITTED'
202 * 'error-is-directory' / 'GNOME_VFS_ERROR_IS_DIRECTORY'
203 * 'error-no-memory' / 'GNOME_VFS_ERROR_NO_MEMORY'
204 * 'error-host-not-found' / 'GNOME_VFS_ERROR_HOST_NOT_FOUND'
205 * 'error-invalid-host-name' / 'GNOME_VFS_ERROR_INVALID_HOST_NAME'
206 * 'error-host-has-no-address' / 'GNOME_VFS_ERROR_HOST_HAS_NO_ADDRESS'
207 * 'error-login-failed' / 'GNOME_VFS_ERROR_LOGIN_FAILED'
208 * 'error-cancelled' / 'GNOME_VFS_ERROR_CANCELLED'
209 * 'error-directory-busy' / 'GNOME_VFS_ERROR_DIRECTORY_BUSY'
210 * 'error-directory-not-empty' / 'GNOME_VFS_ERROR_DIRECTORY_NOT_EMPTY'
211 * 'error-too-many-links' / 'GNOME_VFS_ERROR_TOO_MANY_LINKS'
212 * 'error-read-only-file-system' / 'GNOME_VFS_ERROR_READ_ONLY_FILE_SYS‐
213 TEM'
214 * 'error-not-same-file-system' / 'GNOME_VFS_ERROR_NOT_SAME_FILE_SYSTEM'
215 * 'error-name-too-long' / 'GNOME_VFS_ERROR_NAME_TOO_LONG'
216 * 'error-service-not-available' / 'GNOME_VFS_ERROR_SERVICE_NOT_AVAIL‐
217 ABLE'
218 * 'error-service-obsolete' / 'GNOME_VFS_ERROR_SERVICE_OBSOLETE'
219 * 'error-protocol-error' / 'GNOME_VFS_ERROR_PROTOCOL_ERROR'
220 * 'error-no-master-browser' / 'GNOME_VFS_ERROR_NO_MASTER_BROWSER'
221 * 'error-no-default' / 'GNOME_VFS_ERROR_NO_DEFAULT'
222 * 'error-no-handler' / 'GNOME_VFS_ERROR_NO_HANDLER'
223 * 'error-parse' / 'GNOME_VFS_ERROR_PARSE'
224 * 'error-launch' / 'GNOME_VFS_ERROR_LAUNCH'
225 * 'error-timeout' / 'GNOME_VFS_ERROR_TIMEOUT'
226 * 'error-nameserver' / 'GNOME_VFS_ERROR_NAMESERVER'
227 * 'error-locked' / 'GNOME_VFS_ERROR_LOCKED'
228 * 'error-deprecated-function' / 'GNOME_VFS_ERROR_DEPRECATED_FUNCTION'
229 * 'error-invalid-filename' / 'GNOME_VFS_ERROR_INVALID_FILENAME'
230 * 'error-not-a-symbolic-link' / 'GNOME_VFS_ERROR_NOT_A_SYMBOLIC_LINK'
231 * 'num-errors' / 'GNOME_VFS_NUM_ERRORS'
232
233 flags Gnome2::VFS::SetFileInfoMask
234
235 * 'none' / 'GNOME_VFS_SET_FILE_INFO_NONE'
236 * 'name' / 'GNOME_VFS_SET_FILE_INFO_NAME'
237 * 'permissions' / 'GNOME_VFS_SET_FILE_INFO_PERMISSIONS'
238 * 'owner' / 'GNOME_VFS_SET_FILE_INFO_OWNER'
239 * 'time' / 'GNOME_VFS_SET_FILE_INFO_TIME'
240 * 'acl' / 'GNOME_VFS_SET_FILE_INFO_ACL'
241 * 'selinux-context' / 'GNOME_VFS_SET_FILE_INFO_SELINUX_CONTEXT'
242 * 'symlink-name' / 'GNOME_VFS_SET_FILE_INFO_SYMLINK_NAME'
243
244 flags Gnome2::VFS::URI::HideOptions
245
246 * 'none' / 'GNOME_VFS_URI_HIDE_NONE'
247 * 'user-name' / 'GNOME_VFS_URI_HIDE_USER_NAME'
248 * 'password' / 'GNOME_VFS_URI_HIDE_PASSWORD'
249 * 'host-name' / 'GNOME_VFS_URI_HIDE_HOST_NAME'
250 * 'host-port' / 'GNOME_VFS_URI_HIDE_HOST_PORT'
251 * 'toplevel-method' / 'GNOME_VFS_URI_HIDE_TOPLEVEL_METHOD'
252 * 'fragment-identifier' / 'GNOME_VFS_URI_HIDE_FRAGMENT_IDENTIFIER'
253
255 Gnome2::VFS, Glib::Boxed
256
258 Copyright (C) 2003-2007 by the gtk2-perl team.
259
260 This software is licensed under the LGPL. See Gnome2::VFS for a full
261 notice.
262
263
264
265perl v5.8.8 2007-10-24 Gnome2::VFS::URI(3)