[ANN] FileMan on SqueakMap

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

[ANN] FileMan on SqueakMap

Masashi UMEZAWA-2
Hi,

I've released FileMan on SqueakMap.
http://map.squeak.org/package/f9917683-25da-4a6c-a013-b36527a100c1

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!'.

Another example:
"Copy all contents in ./doc to ./bkup/yymmdd (for daily backup)"
'./doc' asDirectoryEntry copyTo: './bkup' / Date today yyyymmdd.

Features:
- Path representation is portable (the example code runs on Windows,
Mac, Linux).
- Small package (consists of just two classes - FmDirectoryEntry, FmFileEntry)
- Basic file operations
- Dictionary-like operations
- Pipe-like operations
- Zip archive operations

Enjoy!
--
[:masashi | ^umezawa]

Reply | Threaded
Open this post in threaded view
|

Re: [ANN] FileMan on SqueakMap

Damien Cassou-3
Masashi UMEZAWA a écrit :
> Hi,
>
> I've released FileMan on SqueakMap.
> http://map.squeak.org/package/f9917683-25da-4a6c-a013-b36527a100c1

Hi Masashi,

this is really awesome, brilliant. Don't understand why the other didn't
answer you. Stephane, isn't this what you wanted from me ?

Thank you Masashi, good work. If it is 3.9 compatible, I will include it
  in squeak-dev image.

Bye

--
Damien Cassou


Reply | Threaded
Open this post in threaded view
|

Re: [ANN] FileMan on SqueakMap

stephane ducasse-2
I did not have the time to look at it but somehow yes.
I have to have a look at the code and interface to let you know/

On 7 oct. 06, at 11:47, Damien Cassou wrote:

> Masashi UMEZAWA a écrit :
>> Hi,
>> I've released FileMan on SqueakMap.
>> http://map.squeak.org/package/f9917683-25da-4a6c-a013-b36527a100c1
>
> Hi Masashi,
>
> this is really awesome, brilliant. Don't understand why the other  
> didn't answer you. Stephane, isn't this what you wanted from me ?
>
> Thank you Masashi, good work. If it is 3.9 compatible, I will  
> include it  in squeak-dev image.
>
> Bye
>
> --
> Damien Cassou
>
>


Reply | Threaded
Open this post in threaded view
|

Re: [ANN] FileMan on SqueakMap

Edgar J. De Cleene
Damien Cassou puso en su mail :

>> Masashi UMEZAWA a écrit :
>>> Hi,
>>> I've released FileMan on SqueakMap.
>>> http://map.squeak.org/package/f9917683-25da-4a6c-a013-b36527a100c1
>>
>> Hi Masashi,
>>
>> this is really awesome, brilliant. Don't understand why the other
>> didn't answer you.

Because a huge pile of things avoid try ( and I was lazy)
 
>> Thank you Masashi, good work. If it is 3.9 compatible, I will
>> include it  in squeak-dev image.
>>
>> Bye
>>
>> --
>> Damien Cassou


But I add my late applause to Masahi, and say this package go to "little
things what easy my Squeak " list in a remarcable place !!!

I don't know what needs for this go to "official" images, but sure go to
SqueakLight now.

Edgar



       
       
               
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas


Reply | Threaded
Open this post in threaded view
|

Re: [ANN] FileMan on SqueakMap

stephane ducasse-2
What would be nice is to
        - check fileman strnegthen it if needed
        - build on top of it
        - may be cure/replace the current file mess
        with fileman because yes we need good abstractions

Stef

On 7 oct. 06, at 12:12, Edgar J. De Cleene wrote:

> Damien Cassou puso en su mail :
>
>>> Masashi UMEZAWA a écrit :
>>>> Hi,
>>>> I've released FileMan on SqueakMap.
>>>> http://map.squeak.org/package/f9917683-25da-4a6c-a013-b36527a100c1
>>>
>>> Hi Masashi,
>>>
>>> this is really awesome, brilliant. Don't understand why the other
>>> didn't answer you.
>
> Because a huge pile of things avoid try ( and I was lazy)
>
>>> Thank you Masashi, good work. If it is 3.9 compatible, I will
>>> include it  in squeak-dev image.
>>>
>>> Bye
>>>
>>> --  
>>> Damien Cassou
>
>
> But I add my late applause to Masahi, and say this package go to  
> "little
> things what easy my Squeak " list in a remarcable place !!!
>
> I don't know what needs for this go to "official" images, but sure  
> go to
> SqueakLight now.
>
> Edgar
>
>
>
>
>
>
> __________________________________________________
> Preguntá. Respondé. Descubrí.
> Todo lo que querías saber, y lo que ni imaginabas,
> está en Yahoo! Respuestas (Beta).
> ¡Probalo ya!
> http://www.yahoo.com.ar/respuestas
>
>


Reply | Threaded
Open this post in threaded view
|

Re: [ANN] FileMan on SqueakMap

Giovanni Corriga
Il giorno sab, 07/10/2006 alle 12.39 +0200, stephane ducasse ha scritto:
> What would be nice is to
> - check fileman strnegthen it if needed
> - build on top of it
> - may be cure/replace the current file mess
> with fileman because yes we need good abstractions

What does the IO Team think of it?

        Giovanni


Reply | Threaded
Open this post in threaded view
|

Re: [ANN] FileMan on SqueakMap

Masashi UMEZAWA-2
In reply to this post by Damien Cassou-3
Hi,

Thanks. I've developed FileMan in Squeak 3.8. But it should be run in
3.9 (at least,  I confirmed that all the example methods run).

I hope many users try FileMan and find some bugs. :)

Cheers,

2006/10/7, Damien Cassou <[hidden email]>:

> Masashi UMEZAWA a écrit :
> > Hi,
> >
> > I've released FileMan on SqueakMap.
> > http://map.squeak.org/package/f9917683-25da-4a6c-a013-b36527a100c1
>
> Hi Masashi,
>
> this is really awesome, brilliant. Don't understand why the other didn't
> answer you. Stephane, isn't this what you wanted from me ?
>
> Thank you Masashi, good work. If it is 3.9 compatible, I will include it
>   in squeak-dev image.
>
> Bye
>
> --
> Damien Cassou
--
[:masashi | ^umezawa]

Reply | Threaded
Open this post in threaded view
|

Re: [ANN] FileMan on SqueakMap

timrowledge
In reply to this post by Giovanni Corriga

On 8-Oct-06, at 4:19 AM, Giovanni Corriga wrote:

> Il giorno sab, 07/10/2006 alle 12.39 +0200, stephane ducasse ha  
> scritto:
>> What would be nice is to
>> - check fileman strnegthen it if needed
>> - build on top of it
>> - may be cure/replace the current file mess
>> with fileman because yes we need good abstractions
>
> What does the IO Team think of it?

Well *this* member of the IO team is delighted someone is trying to  
solve the problems and mortified that it is a month since he marked  
the mail as 'do something soon' and still hasn't had time to even  
look at it.....


tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
For every action, there is an equal and opposite criticism.