1Gnome2::VFS::main(3)  User Contributed Perl Documentation Gnome2::VFS::main(3)
2
3
4

NAME

6       Gnome2::VFS::main
7

METHODS

9   boolean = Gnome2::VFS->CHECK_VERSION ($major, $minor, $micro)
10       •   $major (integer)
11
12       •   $minor (integer)
13
14       •   $micro (integer)
15
16   list = Gnome2::VFS->GET_VERSION_INFO
17       Returns the major, minor and micro version numbers of GnomeVFS.
18
19   list = Gnome2::VFS->check_same_fs ($source, $target)
20       •   $source (string)
21
22       •   $target (string)
23
24       Returns a GnomeVFSResult and a boolean.
25
26   list = Gnome2::VFS->create ($text_uri, $open_mode, $exclusive, $perm)
27       •   $text_uri (string)
28
29       •   $open_mode (Gnome2::VFS::OpenMode)
30
31       •   $exclusive (boolean)
32
33       •   $perm (integer)
34
35       Returns a GnomeVFSResult and a GnomeVFSHandle.
36
37   result = Gnome2::VFS->create_symbolic_link ($uri, $target_reference)
38       •   $uri (Gnome2::VFS::URI)
39
40       •   $target_reference (string)
41
42   string = Gnome2::VFS->escape_host_and_path_string ($path)
43       •   $path (string)
44
45   string = Gnome2::VFS->escape_path_string ($path)
46       •   $path (string)
47
48   string = Gnome2::VFS->escape_set ($string, $match_set)
49       •   $string (string)
50
51       •   $match_set (string)
52
53   string = Gnome2::VFS->escape_slashes ($string)
54       •   $string (string)
55
56   string = Gnome2::VFS->escape_string ($string)
57       •   $string (string)
58
59       Since: vfs 2.2
60
61   string = Gnome2::VFS->expand_initial_tilde ($path)
62       •   $path (string)
63
64   list = Gnome2::VFS->get_file_info ($text_uri, $options)
65       •   $text_uri (string)
66
67       •   $options (Gnome2::VFS::FileInfoOptions)
68
69       Returns a GnomeVFSResult and a GnomeVFSFileInfo.
70
71   result = Gnome2::VFS->set_file_info ($text_uri, $info, $mask)
72       •   $text_uri (string)
73
74       •   $info (Gnome2::VFS::FileInfo)
75
76       •   $mask (Gnome2::VFS::SetFileInfoMask)
77
78   list = Gnome2::VFS->find_directory ($near_uri, $kind, $create_if_needed,
79       $find_if_needed, $permissions)
80       •   $near_uri (Gnome2::VFS::URI)
81
82       •   $kind (Gnome2::VFS::FindDirectoryKind)
83
84       •   $create_if_needed (boolean)
85
86       •   $find_if_needed (boolean)
87
88       •   $permissions (integer)
89
90       Returns a GnomeVFSResult and a GnomeVFSURI.
91
92   string = Gnome2::VFS->format_file_size_for_display ($size)
93       •   $size (unsigned)
94
95   string = Gnome2::VFS->format_uri_for_display ($uri)
96       •   $uri (string)
97
98       Since: vfs 2.2
99
100   string = Gnome2::VFS->icon_path_from_filename ($filename)
101       •   $filename (string)
102
103   boolean = Gnome2::VFS->init
104   boolean = Gnome2::VFS->initialized
105   boolean = Gnome2::VFS->is_executable_command_string ($command_string)
106       •   $command_string (string)
107
108   boolean = Gnome2::VFS->is_primary_thread
109   string = Gnome2::VFS->get_local_path_from_uri ($uri)
110       •   $uri (string)
111
112   result = Gnome2::VFS->make_directory ($text_uri, $perm)
113       •   $text_uri (string)
114
115       •   $perm (integer)
116
117   string = Gnome2::VFS->make_path_name_canonical ($path)
118       •   $path (string)
119
120   string = Gnome2::VFS->make_uri_canonical ($uri)
121       •   $uri (string)
122
123   string = Gnome2::VFS->make_uri_canonical_strip_fragment ($uri)
124       •   $uri (string)
125
126       Since: vfs 2.2
127
128   string = Gnome2::VFS->make_uri_from_input ($uri)
129       •   $uri (string)
130
131       Since: vfs 2.2
132
133   string = Gnome2::VFS->make_uri_from_input_with_dirs ($uri, $dirs)
134       •   $uri (string)
135
136       •   $dirs (Gnome2::VFS::MakeURIDirs)
137
138       Since: vfs 2.4
139
140   string = Gnome2::VFS->make_uri_from_input_with_trailing_ws ($location)
141       •   $location (string)
142
143       Since: vfs 2.12
144
145   string = Gnome2::VFS->make_uri_from_shell_arg ($uri)
146       •   $uri (string)
147
148       Since: vfs 2.2
149
150   result = Gnome2::VFS->move ($old_text_uri, $new_text_uri, $force_replace)
151       •   $old_text_uri (string)
152
153       •   $new_text_uri (string)
154
155       •   $force_replace (boolean)
156
157   list = Gnome2::VFS->open ($text_uri, $open_mode)
158       •   $text_uri (string)
159
160       •   $open_mode (Gnome2::VFS::OpenMode)
161
162       Returns a GnomeVFSResult and a GnomeVFSHandle.
163
164   list = Gnome2::VFS->read_entire_file ($uri)
165       •   $uri (string)
166
167       Returns a GnomeVFSResult, the file size and the file content.
168
169       Since: vfs 2.2
170
171   result = Gnome2::VFS->remove_directory ($text_uri)
172       •   $text_uri (string)
173
174   string = Gnome2::VFS->result_to_string ($result)
175       •   $result (Gnome2::VFS::Result)
176
177   Gnome2::VFS->shutdown
178   result = Gnome2::VFS->truncate ($text_uri, $length)
179       •   $text_uri (string)
180
181       •   $length (unsigned)
182
183   string = Gnome2::VFS->unescape_string ($escaped_string,
184       $illegal_characters=undef)
185       •   $escaped_string (string)
186
187       •   $illegal_characters (string)
188
189   string = Gnome2::VFS->unescape_string_for_display ($escaped)
190       •   $escaped (string)
191
192   result = Gnome2::VFS->unlink ($text_uri)
193       •   $text_uri (string)
194
195   string = Gnome2::VFS->get_uri_from_local_path ($local_full_path)
196       •   $local_full_path (string)
197
198   string = Gnome2::VFS->get_uri_scheme ($uri)
199       •   $uri (string)
200
201       Since: vfs 2.2
202
203   boolean = Gnome2::VFS->uris_match ($uri_1, $uri_2)
204       •   $uri_1 (string)
205
206       •   $uri_2 (string)
207
208       Since: vfs 2.2
209
210   result = Gnome2::VFS->url_show ($url)
211       •   $url (string)
212
213       Since: vfs 2.4
214
215   result = Gnome2::VFS->url_show_with_env ($url, $env_ref)
216       •   $url (string)
217
218       •   $env_ref (scalar)
219
220       Since: vfs 2.4
221
222   list = Gnome2::VFS->get_volume_free_space ($vfs_uri)
223       •   $vfs_uri (Gnome2::VFS::URI)
224
225       Returns a GnomeVFSResult and a GnomeVFSFileSize.
226

ENUMS AND FLAGS

228   flags Gnome2::VFS::FileInfoOptions
229       •   'default' / 'GNOME_VFS_FILE_INFO_DEFAULT'
230
231       •   'get-mime-type' / 'GNOME_VFS_FILE_INFO_GET_MIME_TYPE'
232
233       •   'force-fast-mime-type' / 'GNOME_VFS_FILE_INFO_FORCE_FAST_MIME_TYPE'
234
235       •   'force-slow-mime-type' / 'GNOME_VFS_FILE_INFO_FORCE_SLOW_MIME_TYPE'
236
237       •   'follow-links' / 'GNOME_VFS_FILE_INFO_FOLLOW_LINKS'
238
239       •   'get-access-rights' / 'GNOME_VFS_FILE_INFO_GET_ACCESS_RIGHTS'
240
241       •   'name-only' / 'GNOME_VFS_FILE_INFO_NAME_ONLY'
242
243       •   'get-acl' / 'GNOME_VFS_FILE_INFO_GET_ACL'
244
245       •   'get-selinux-context' / 'GNOME_VFS_FILE_INFO_GET_SELINUX_CONTEXT'
246
247   enum Gnome2::VFS::FindDirectoryKind
248       •   'desktop' / 'GNOME_VFS_DIRECTORY_KIND_DESKTOP'
249
250       •   'trash' / 'GNOME_VFS_DIRECTORY_KIND_TRASH'
251
252   flags Gnome2::VFS::MakeURIDirs
253       •   'none' / 'GNOME_VFS_MAKE_URI_DIR_NONE'
254
255       •   'homedir' / 'GNOME_VFS_MAKE_URI_DIR_HOMEDIR'
256
257       •   'current' / 'GNOME_VFS_MAKE_URI_DIR_CURRENT'
258
259   flags Gnome2::VFS::OpenMode
260       •   'none' / 'GNOME_VFS_OPEN_NONE'
261
262       •   'read' / 'GNOME_VFS_OPEN_READ'
263
264       •   'write' / 'GNOME_VFS_OPEN_WRITE'
265
266       •   'random' / 'GNOME_VFS_OPEN_RANDOM'
267
268       •   'truncate' / 'GNOME_VFS_OPEN_TRUNCATE'
269
270   enum Gnome2::VFS::Result
271       •   'ok' / 'GNOME_VFS_OK'
272
273       •   'error-not-found' / 'GNOME_VFS_ERROR_NOT_FOUND'
274
275       •   'error-generic' / 'GNOME_VFS_ERROR_GENERIC'
276
277       •   'error-internal' / 'GNOME_VFS_ERROR_INTERNAL'
278
279       •   'error-bad-parameters' / 'GNOME_VFS_ERROR_BAD_PARAMETERS'
280
281       •   'error-not-supported' / 'GNOME_VFS_ERROR_NOT_SUPPORTED'
282
283       •   'error-io' / 'GNOME_VFS_ERROR_IO'
284
285       •   'error-corrupted-data' / 'GNOME_VFS_ERROR_CORRUPTED_DATA'
286
287       •   'error-wrong-format' / 'GNOME_VFS_ERROR_WRONG_FORMAT'
288
289       •   'error-bad-file' / 'GNOME_VFS_ERROR_BAD_FILE'
290
291       •   'error-too-big' / 'GNOME_VFS_ERROR_TOO_BIG'
292
293       •   'error-no-space' / 'GNOME_VFS_ERROR_NO_SPACE'
294
295       •   'error-read-only' / 'GNOME_VFS_ERROR_READ_ONLY'
296
297       •   'error-invalid-uri' / 'GNOME_VFS_ERROR_INVALID_URI'
298
299       •   'error-not-open' / 'GNOME_VFS_ERROR_NOT_OPEN'
300
301       •   'error-invalid-open-mode' / 'GNOME_VFS_ERROR_INVALID_OPEN_MODE'
302
303       •   'error-access-denied' / 'GNOME_VFS_ERROR_ACCESS_DENIED'
304
305       •   'error-too-many-open-files' / 'GNOME_VFS_ERROR_TOO_MANY_OPEN_FILES'
306
307       •   'error-eof' / 'GNOME_VFS_ERROR_EOF'
308
309       •   'error-not-a-directory' / 'GNOME_VFS_ERROR_NOT_A_DIRECTORY'
310
311       •   'error-in-progress' / 'GNOME_VFS_ERROR_IN_PROGRESS'
312
313       •   'error-interrupted' / 'GNOME_VFS_ERROR_INTERRUPTED'
314
315       •   'error-file-exists' / 'GNOME_VFS_ERROR_FILE_EXISTS'
316
317       •   'error-loop' / 'GNOME_VFS_ERROR_LOOP'
318
319       •   'error-not-permitted' / 'GNOME_VFS_ERROR_NOT_PERMITTED'
320
321       •   'error-is-directory' / 'GNOME_VFS_ERROR_IS_DIRECTORY'
322
323       •   'error-no-memory' / 'GNOME_VFS_ERROR_NO_MEMORY'
324
325       •   'error-host-not-found' / 'GNOME_VFS_ERROR_HOST_NOT_FOUND'
326
327       •   'error-invalid-host-name' / 'GNOME_VFS_ERROR_INVALID_HOST_NAME'
328
329       •   'error-host-has-no-address' / 'GNOME_VFS_ERROR_HOST_HAS_NO_ADDRESS'
330
331       •   'error-login-failed' / 'GNOME_VFS_ERROR_LOGIN_FAILED'
332
333       •   'error-cancelled' / 'GNOME_VFS_ERROR_CANCELLED'
334
335       •   'error-directory-busy' / 'GNOME_VFS_ERROR_DIRECTORY_BUSY'
336
337       •   'error-directory-not-empty' / 'GNOME_VFS_ERROR_DIRECTORY_NOT_EMPTY'
338
339       •   'error-too-many-links' / 'GNOME_VFS_ERROR_TOO_MANY_LINKS'
340
341       •   'error-read-only-file-system' /
342           'GNOME_VFS_ERROR_READ_ONLY_FILE_SYSTEM'
343
344       •   'error-not-same-file-system' /
345           'GNOME_VFS_ERROR_NOT_SAME_FILE_SYSTEM'
346
347       •   'error-name-too-long' / 'GNOME_VFS_ERROR_NAME_TOO_LONG'
348
349       •   'error-service-not-available' /
350           'GNOME_VFS_ERROR_SERVICE_NOT_AVAILABLE'
351
352       •   'error-service-obsolete' / 'GNOME_VFS_ERROR_SERVICE_OBSOLETE'
353
354       •   'error-protocol-error' / 'GNOME_VFS_ERROR_PROTOCOL_ERROR'
355
356       •   'error-no-master-browser' / 'GNOME_VFS_ERROR_NO_MASTER_BROWSER'
357
358       •   'error-no-default' / 'GNOME_VFS_ERROR_NO_DEFAULT'
359
360       •   'error-no-handler' / 'GNOME_VFS_ERROR_NO_HANDLER'
361
362       •   'error-parse' / 'GNOME_VFS_ERROR_PARSE'
363
364       •   'error-launch' / 'GNOME_VFS_ERROR_LAUNCH'
365
366       •   'error-timeout' / 'GNOME_VFS_ERROR_TIMEOUT'
367
368       •   'error-nameserver' / 'GNOME_VFS_ERROR_NAMESERVER'
369
370       •   'error-locked' / 'GNOME_VFS_ERROR_LOCKED'
371
372       •   'error-deprecated-function' / 'GNOME_VFS_ERROR_DEPRECATED_FUNCTION'
373
374       •   'error-invalid-filename' / 'GNOME_VFS_ERROR_INVALID_FILENAME'
375
376       •   'error-not-a-symbolic-link' / 'GNOME_VFS_ERROR_NOT_A_SYMBOLIC_LINK'
377
378       •   'num-errors' / 'GNOME_VFS_NUM_ERRORS'
379
380   flags Gnome2::VFS::SetFileInfoMask
381       •   'none' / 'GNOME_VFS_SET_FILE_INFO_NONE'
382
383       •   'name' / 'GNOME_VFS_SET_FILE_INFO_NAME'
384
385       •   'permissions' / 'GNOME_VFS_SET_FILE_INFO_PERMISSIONS'
386
387       •   'owner' / 'GNOME_VFS_SET_FILE_INFO_OWNER'
388
389       •   'time' / 'GNOME_VFS_SET_FILE_INFO_TIME'
390
391       •   'acl' / 'GNOME_VFS_SET_FILE_INFO_ACL'
392
393       •   'selinux-context' / 'GNOME_VFS_SET_FILE_INFO_SELINUX_CONTEXT'
394
395       •   'symlink-name' / 'GNOME_VFS_SET_FILE_INFO_SYMLINK_NAME'
396

SEE ALSO

398       Gnome2::VFS
399
401       Copyright (C) 2003-2007, 2013 by the gtk2-perl team.
402
403       This software is licensed under the LGPL.  See Gnome2::VFS for a full
404       notice.
405
406
407
408perl v5.34.0                      2021-07-22              Gnome2::VFS::main(3)
Impressum