Hi colin good that you did that because I was starting to do the same. This file stuff was too frustrating. - I read the tutorial and I scanned the code (too early this morning) and I could not see how to rename a file. without copying it. - why having this in the tests and not in the classes? createDirectory: aString filesystem createDirectory: (filesystem stringToPath: aString) createFile: aString filesystem createFile: (filesystem stringToPath: aString) - It was not clear to me how we map the old interface readyOnlyFileNamed and friends - ref := FSWindowsFilesystem stringToReference: 'D:\Squeak\3.10'. I was wondering if reference should be part of the user domain because why not ref := FSWindowsFilesystem on: 'D:\Squeak\3.10'. or ref := FSWindowsFilesystem folder: 'D:\Squeak\3.10'. I was confused by FSReference vs. FSPath - I would really like to see how we can get rid of FileDirectory and use your lib and its improved version. On Nov 21, 2009, at 10:01 AM, Lukas Renggli wrote:
---------- Forwarded message ---------- From: Colin Putney <cputney@wiresong.ca> Date: 2009/11/21 Subject: [squeak-dev] [ANN] Filesystem 1.0 To: The general-purpose Squeak developers list <squeak-dev@lists.squeakfoundation.org>
Hi folks,
I've just made available for download a new project of mine. It's an alternative interface to the filesystem, which grew out of my frustration with trying to use FileDirectory for some particularly file-intensive code. It's built upon the FilePlugin primitives, but all the image-side code is written from scratch.
The interface offers: - Convenient path manipulation - Transparent access to the contents of zip files - Late-bound references to files and directories - Support for working with entire directory trees
A SAR file is available for download here:
http://www.wiresong.ca/downloads/Filesystem-1.0.0.sar
A short tutorial is available here:
http://www.wiresong.ca/filesystem/
Feedback appreciated!
Colin
-- Lukas Renggli http://www.lukas-renggli.ch
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project