Thanks Damien
Alexandre
On 12 Sep 2008, at 07:30, Damien Cassou wrote:
Comparaison between FileMan and Rio : http://wiki.squeak.org/squeak/3800
On Thu, Sep 11, 2008 at 4:00 PM, Alexandre Bergel
<[EMAIL PROTECTED]> wrote:
Dear List,
On SqueakMap there is a package called FileMan. Here is an example:
Squeak's file libraries (Directory, DirectoryEntry, FileStream,
etc.) are
sometimes very confusing to use. FileMan provides a simple,
refactored
interfaces for manipulating files and directories by wrapping those
classes.
"Before"
subDir := FileDirectory default directoryNamed: 'subDir'.
subDir assureExistence.
[str := subDir newFileNamed: 'file1'.
str nextPutAll: 'Hello!']
ensure: [str close].
"After installation of FileMan"
'./subDir' asDirectoryEntry at: 'file2' put: 'Hello!'
Maybe it worth having a look at it?
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
--
Damien Cassou
Peter von der Ahé: «I'm beginning to see why Gilad wished us good
luck». (http://blogs.sun.com/ahe/entry/override_snafu)
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project