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