+2004-07-15 Andreas Kupries <andreask@activestate.com>
+
+ * doc/vfs-fsapi.man: Clarified description of the close callback
+ the handler method 'open' may set up. Especially noted that
+ 'close' must not be called from within this callback, that it is
+ done by the caller itself.
+
2004-07-15 Vince Darley <vincentdarley@sourceforge.net>
* doc/*: fix to removedirectory docs which should say to return
[enum]
and the command executed is [cmd {file exists yyy}].
[list_end]
+[nl]
The file separator between [arg root] and [arg relative] is omitted.
Most filesystem operations need only the [arg relative] argument for
The list returned upon success contains at least one and at most two
elements. The first, obligatory, element is always the handle of the
channel which was created to allow access to the contents of the
-file. If specified the second element will be interpreted as a
-callback, i.e. a command prefix. This prefix will always be executed
-as is, i.e. without additional arguments. Any required arguments have
-to be returned as part of the result of the call to [method open].
+file.
+
+[nl]
+
+If specified the second element will be interpreted as a callback,
+i.e. a command prefix. This prefix will always be executed as is,
+i.e. without additional arguments. Any required arguments have to be
+returned as part of the result of the call to [method open].
+
+[nl]
+
+If present the specified callback will be evaluated just before the
+channel is closed [emph {by the generic filesystem layer}]. The
+callback itself [emph {must not}] call [cmd close].
[nl]
-If present the specified callback will be evaluated by the generic
-filesystem layer just before the channel whose handle was returned as
-the first element of the list is closed. Additionally all available
-data will have been flushed into it. This means, for example, that the
-callback can seek to the beginning of the said channel, read its
-contents and then store the gathered data elsewhere. In other words,
-this callback is not only crucial to the cleanup of any resources
-associated with an opened file, but also for the ability to implement
-a filesystem which can be written to.
+The channel however is live enough to allow [cmd seek] and [cmd read]
+operations. In addition all available data will have been flushed into
+it already. This means, for example, that the callback can seek to the
+beginning of the said channel, read its contents and then store the
+gathered data elsewhere. In other words, this callback is not only
+crucial to the cleanup of any resources associated with an opened
+file, but also for the ability to implement a filesystem which can be
+written to.
[nl]