1Gnome2::VFS::Handle(3)User Contributed Perl DocumentationGnome2::VFS::Handle(3)
2
3
4

NAME

6       Gnome2::VFS::Handle
7

METHODS

9   result = $handle->close
10   list = $handle->get_file_info ($options)
11       ·   $options (Gnome2::VFS::FileInfoOptions)
12
13       Returns a GnomeVFSResult and a GnomeVFSFileInfo.
14
15   result = $handle->forget_cache ($offset, $size)
16       ·   $offset (unsigned)
17
18       ·   $size (unsigned)
19
20       Since: vfs 2.12
21
22   list = $handle->read ($bytes)
23       ·   $bytes (unsigned)
24
25       Returns a GnomeVFSResult, the number of bytes read and the buffer
26       containing the read content.
27
28   result = $handle->seek ($whence, $offset)
29       ·   $whence (Gnome2::VFS::SeekPosition)
30
31       ·   $offset (unsigned)
32
33   list = $handle->tell
34       Returns a GnomeVFSResult and the offset.
35
36   result = $handle->truncate ($length)
37       ·   $length (unsigned)
38
39   list = $handle->write ($buffer, $bytes)
40       ·   $buffer (string)
41
42       ·   $bytes (unsigned)
43
44       Returns a GnomeVFSResult and the number of bytes written.
45

ENUMS AND FLAGS

47   flags Gnome2::VFS::FileInfoOptions
48       ·   'default' / 'GNOME_VFS_FILE_INFO_DEFAULT'
49
50       ·   'get-mime-type' / 'GNOME_VFS_FILE_INFO_GET_MIME_TYPE'
51
52       ·   'force-fast-mime-type' / 'GNOME_VFS_FILE_INFO_FORCE_FAST_MIME_TYPE'
53
54       ·   'force-slow-mime-type' / 'GNOME_VFS_FILE_INFO_FORCE_SLOW_MIME_TYPE'
55
56       ·   'follow-links' / 'GNOME_VFS_FILE_INFO_FOLLOW_LINKS'
57
58       ·   'get-access-rights' / 'GNOME_VFS_FILE_INFO_GET_ACCESS_RIGHTS'
59
60       ·   'name-only' / 'GNOME_VFS_FILE_INFO_NAME_ONLY'
61
62       ·   'get-acl' / 'GNOME_VFS_FILE_INFO_GET_ACL'
63
64       ·   'get-selinux-context' / 'GNOME_VFS_FILE_INFO_GET_SELINUX_CONTEXT'
65
66   enum Gnome2::VFS::Result
67       ·   'ok' / 'GNOME_VFS_OK'
68
69       ·   'error-not-found' / 'GNOME_VFS_ERROR_NOT_FOUND'
70
71       ·   'error-generic' / 'GNOME_VFS_ERROR_GENERIC'
72
73       ·   'error-internal' / 'GNOME_VFS_ERROR_INTERNAL'
74
75       ·   'error-bad-parameters' / 'GNOME_VFS_ERROR_BAD_PARAMETERS'
76
77       ·   'error-not-supported' / 'GNOME_VFS_ERROR_NOT_SUPPORTED'
78
79       ·   'error-io' / 'GNOME_VFS_ERROR_IO'
80
81       ·   'error-corrupted-data' / 'GNOME_VFS_ERROR_CORRUPTED_DATA'
82
83       ·   'error-wrong-format' / 'GNOME_VFS_ERROR_WRONG_FORMAT'
84
85       ·   'error-bad-file' / 'GNOME_VFS_ERROR_BAD_FILE'
86
87       ·   'error-too-big' / 'GNOME_VFS_ERROR_TOO_BIG'
88
89       ·   'error-no-space' / 'GNOME_VFS_ERROR_NO_SPACE'
90
91       ·   'error-read-only' / 'GNOME_VFS_ERROR_READ_ONLY'
92
93       ·   'error-invalid-uri' / 'GNOME_VFS_ERROR_INVALID_URI'
94
95       ·   'error-not-open' / 'GNOME_VFS_ERROR_NOT_OPEN'
96
97       ·   'error-invalid-open-mode' / 'GNOME_VFS_ERROR_INVALID_OPEN_MODE'
98
99       ·   'error-access-denied' / 'GNOME_VFS_ERROR_ACCESS_DENIED'
100
101       ·   'error-too-many-open-files' / 'GNOME_VFS_ERROR_TOO_MANY_OPEN_FILES'
102
103       ·   'error-eof' / 'GNOME_VFS_ERROR_EOF'
104
105       ·   'error-not-a-directory' / 'GNOME_VFS_ERROR_NOT_A_DIRECTORY'
106
107       ·   'error-in-progress' / 'GNOME_VFS_ERROR_IN_PROGRESS'
108
109       ·   'error-interrupted' / 'GNOME_VFS_ERROR_INTERRUPTED'
110
111       ·   'error-file-exists' / 'GNOME_VFS_ERROR_FILE_EXISTS'
112
113       ·   'error-loop' / 'GNOME_VFS_ERROR_LOOP'
114
115       ·   'error-not-permitted' / 'GNOME_VFS_ERROR_NOT_PERMITTED'
116
117       ·   'error-is-directory' / 'GNOME_VFS_ERROR_IS_DIRECTORY'
118
119       ·   'error-no-memory' / 'GNOME_VFS_ERROR_NO_MEMORY'
120
121       ·   'error-host-not-found' / 'GNOME_VFS_ERROR_HOST_NOT_FOUND'
122
123       ·   'error-invalid-host-name' / 'GNOME_VFS_ERROR_INVALID_HOST_NAME'
124
125       ·   'error-host-has-no-address' / 'GNOME_VFS_ERROR_HOST_HAS_NO_ADDRESS'
126
127       ·   'error-login-failed' / 'GNOME_VFS_ERROR_LOGIN_FAILED'
128
129       ·   'error-cancelled' / 'GNOME_VFS_ERROR_CANCELLED'
130
131       ·   'error-directory-busy' / 'GNOME_VFS_ERROR_DIRECTORY_BUSY'
132
133       ·   'error-directory-not-empty' / 'GNOME_VFS_ERROR_DIRECTORY_NOT_EMPTY'
134
135       ·   'error-too-many-links' / 'GNOME_VFS_ERROR_TOO_MANY_LINKS'
136
137       ·   'error-read-only-file-system' /
138           'GNOME_VFS_ERROR_READ_ONLY_FILE_SYSTEM'
139
140       ·   'error-not-same-file-system' /
141           'GNOME_VFS_ERROR_NOT_SAME_FILE_SYSTEM'
142
143       ·   'error-name-too-long' / 'GNOME_VFS_ERROR_NAME_TOO_LONG'
144
145       ·   'error-service-not-available' /
146           'GNOME_VFS_ERROR_SERVICE_NOT_AVAILABLE'
147
148       ·   'error-service-obsolete' / 'GNOME_VFS_ERROR_SERVICE_OBSOLETE'
149
150       ·   'error-protocol-error' / 'GNOME_VFS_ERROR_PROTOCOL_ERROR'
151
152       ·   'error-no-master-browser' / 'GNOME_VFS_ERROR_NO_MASTER_BROWSER'
153
154       ·   'error-no-default' / 'GNOME_VFS_ERROR_NO_DEFAULT'
155
156       ·   'error-no-handler' / 'GNOME_VFS_ERROR_NO_HANDLER'
157
158       ·   'error-parse' / 'GNOME_VFS_ERROR_PARSE'
159
160       ·   'error-launch' / 'GNOME_VFS_ERROR_LAUNCH'
161
162       ·   'error-timeout' / 'GNOME_VFS_ERROR_TIMEOUT'
163
164       ·   'error-nameserver' / 'GNOME_VFS_ERROR_NAMESERVER'
165
166       ·   'error-locked' / 'GNOME_VFS_ERROR_LOCKED'
167
168       ·   'error-deprecated-function' / 'GNOME_VFS_ERROR_DEPRECATED_FUNCTION'
169
170       ·   'error-invalid-filename' / 'GNOME_VFS_ERROR_INVALID_FILENAME'
171
172       ·   'error-not-a-symbolic-link' / 'GNOME_VFS_ERROR_NOT_A_SYMBOLIC_LINK'
173
174       ·   'num-errors' / 'GNOME_VFS_NUM_ERRORS'
175
176   enum Gnome2::VFS::SeekPosition
177       ·   'start' / 'GNOME_VFS_SEEK_START'
178
179       ·   'current' / 'GNOME_VFS_SEEK_CURRENT'
180
181       ·   'end' / 'GNOME_VFS_SEEK_END'
182

SEE ALSO

184       Gnome2::VFS
185
187       Copyright (C) 2003-2007, 2013 by the gtk2-perl team.
188
189       This software is licensed under the LGPL.  See Gnome2::VFS for a full
190       notice.
191
192
193
194perl v5.30.0                      2019-07-26            Gnome2::VFS::Handle(3)
Impressum