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

ENUMS AND FLAGS

50       flags Gnome2::VFS::FileInfoOptions
51
52       * 'default' / 'GNOME_VFS_FILE_INFO_DEFAULT'
53       * 'get-mime-type' / 'GNOME_VFS_FILE_INFO_GET_MIME_TYPE'
54       * 'force-fast-mime-type' / 'GNOME_VFS_FILE_INFO_FORCE_FAST_MIME_TYPE'
55       * 'force-slow-mime-type' / 'GNOME_VFS_FILE_INFO_FORCE_SLOW_MIME_TYPE'
56       * 'follow-links' / 'GNOME_VFS_FILE_INFO_FOLLOW_LINKS'
57       * 'get-access-rights' / 'GNOME_VFS_FILE_INFO_GET_ACCESS_RIGHTS'
58       * 'name-only' / 'GNOME_VFS_FILE_INFO_NAME_ONLY'
59       * 'get-acl' / 'GNOME_VFS_FILE_INFO_GET_ACL'
60       * 'get-selinux-context' / 'GNOME_VFS_FILE_INFO_GET_SELINUX_CONTEXT'
61
62       enum Gnome2::VFS::Result
63
64       * 'ok' / 'GNOME_VFS_OK'
65       * 'error-not-found' / 'GNOME_VFS_ERROR_NOT_FOUND'
66       * 'error-generic' / 'GNOME_VFS_ERROR_GENERIC'
67       * 'error-internal' / 'GNOME_VFS_ERROR_INTERNAL'
68       * 'error-bad-parameters' / 'GNOME_VFS_ERROR_BAD_PARAMETERS'
69       * 'error-not-supported' / 'GNOME_VFS_ERROR_NOT_SUPPORTED'
70       * 'error-io' / 'GNOME_VFS_ERROR_IO'
71       * 'error-corrupted-data' / 'GNOME_VFS_ERROR_CORRUPTED_DATA'
72       * 'error-wrong-format' / 'GNOME_VFS_ERROR_WRONG_FORMAT'
73       * 'error-bad-file' / 'GNOME_VFS_ERROR_BAD_FILE'
74       * 'error-too-big' / 'GNOME_VFS_ERROR_TOO_BIG'
75       * 'error-no-space' / 'GNOME_VFS_ERROR_NO_SPACE'
76       * 'error-read-only' / 'GNOME_VFS_ERROR_READ_ONLY'
77       * 'error-invalid-uri' / 'GNOME_VFS_ERROR_INVALID_URI'
78       * 'error-not-open' / 'GNOME_VFS_ERROR_NOT_OPEN'
79       * 'error-invalid-open-mode' / 'GNOME_VFS_ERROR_INVALID_OPEN_MODE'
80       * 'error-access-denied' / 'GNOME_VFS_ERROR_ACCESS_DENIED'
81       * 'error-too-many-open-files' / 'GNOME_VFS_ERROR_TOO_MANY_OPEN_FILES'
82       * 'error-eof' / 'GNOME_VFS_ERROR_EOF'
83       * 'error-not-a-directory' / 'GNOME_VFS_ERROR_NOT_A_DIRECTORY'
84       * 'error-in-progress' / 'GNOME_VFS_ERROR_IN_PROGRESS'
85       * 'error-interrupted' / 'GNOME_VFS_ERROR_INTERRUPTED'
86       * 'error-file-exists' / 'GNOME_VFS_ERROR_FILE_EXISTS'
87       * 'error-loop' / 'GNOME_VFS_ERROR_LOOP'
88       * 'error-not-permitted' / 'GNOME_VFS_ERROR_NOT_PERMITTED'
89       * 'error-is-directory' / 'GNOME_VFS_ERROR_IS_DIRECTORY'
90       * 'error-no-memory' / 'GNOME_VFS_ERROR_NO_MEMORY'
91       * 'error-host-not-found' / 'GNOME_VFS_ERROR_HOST_NOT_FOUND'
92       * 'error-invalid-host-name' / 'GNOME_VFS_ERROR_INVALID_HOST_NAME'
93       * 'error-host-has-no-address' / 'GNOME_VFS_ERROR_HOST_HAS_NO_ADDRESS'
94       * 'error-login-failed' / 'GNOME_VFS_ERROR_LOGIN_FAILED'
95       * 'error-cancelled' / 'GNOME_VFS_ERROR_CANCELLED'
96       * 'error-directory-busy' / 'GNOME_VFS_ERROR_DIRECTORY_BUSY'
97       * 'error-directory-not-empty' / 'GNOME_VFS_ERROR_DIRECTORY_NOT_EMPTY'
98       * 'error-too-many-links' / 'GNOME_VFS_ERROR_TOO_MANY_LINKS'
99       * 'error-read-only-file-system' / 'GNOME_VFS_ERROR_READ_ONLY_FILE_SYS‐
100       TEM'
101       * 'error-not-same-file-system' / 'GNOME_VFS_ERROR_NOT_SAME_FILE_SYSTEM'
102       * 'error-name-too-long' / 'GNOME_VFS_ERROR_NAME_TOO_LONG'
103       * 'error-service-not-available' / 'GNOME_VFS_ERROR_SERVICE_NOT_AVAIL‐
104       ABLE'
105       * 'error-service-obsolete' / 'GNOME_VFS_ERROR_SERVICE_OBSOLETE'
106       * 'error-protocol-error' / 'GNOME_VFS_ERROR_PROTOCOL_ERROR'
107       * 'error-no-master-browser' / 'GNOME_VFS_ERROR_NO_MASTER_BROWSER'
108       * 'error-no-default' / 'GNOME_VFS_ERROR_NO_DEFAULT'
109       * 'error-no-handler' / 'GNOME_VFS_ERROR_NO_HANDLER'
110       * 'error-parse' / 'GNOME_VFS_ERROR_PARSE'
111       * 'error-launch' / 'GNOME_VFS_ERROR_LAUNCH'
112       * 'error-timeout' / 'GNOME_VFS_ERROR_TIMEOUT'
113       * 'error-nameserver' / 'GNOME_VFS_ERROR_NAMESERVER'
114       * 'error-locked' / 'GNOME_VFS_ERROR_LOCKED'
115       * 'error-deprecated-function' / 'GNOME_VFS_ERROR_DEPRECATED_FUNCTION'
116       * 'error-invalid-filename' / 'GNOME_VFS_ERROR_INVALID_FILENAME'
117       * 'error-not-a-symbolic-link' / 'GNOME_VFS_ERROR_NOT_A_SYMBOLIC_LINK'
118       * 'num-errors' / 'GNOME_VFS_NUM_ERRORS'
119
120       enum Gnome2::VFS::SeekPosition
121
122       * 'start' / 'GNOME_VFS_SEEK_START'
123       * 'current' / 'GNOME_VFS_SEEK_CURRENT'
124       * 'end' / 'GNOME_VFS_SEEK_END'
125

SEE ALSO

127       Gnome2::VFS
128
130       Copyright (C) 2003-2007 by the gtk2-perl team.
131
132       This software is licensed under the LGPL.  See Gnome2::VFS for a full
133       notice.
134
135
136
137perl v5.8.8                       2007-10-24            Gnome2::VFS::Handle(3)
Impressum