Skip to content
/ FileMan Public

FileMan is a thin wrapper for various Smalltalk file libraries. It provides simple, portable interfaces for manipulating files and directories.

License

Notifications You must be signed in to change notification settings

mumez/FileMan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FileMan

Overview

FileMan is a thin wrapper for various Smalltalk file libraries. It provides simple, portable interfaces for manipulating files and directories.

Currently, FileMan can wrap those different Smalltalk file libraries.

  • FileDirectory (Squeak, Cuis)
  • FileSystem (Pharo)
  • Filename (VisualWorks)

This repository is mainly for Pharo and Squeak.

Cuis version

Cuis now includes FileMan as a default file library. Repository for Cuis version is kept for historical reasons.

VW version

VW version is available on Public StORE repository. Please load FileMan(Bundle) from StORE.

Installation

Pharo & Squeak

Metacello new
  baseline: 'FileMan';
  repository: 'github://mumez/FileMan/repository';
  load.

Older Squeak (before version 5.3)

Installer squeaksource
    project: 'MetacelloRepository';
    install: 'ConfigurationOfFileMan'. 
(Smalltalk at: #ConfigurationOfFileMan) perform: #load.

Example code

"Before (legacy Squeak)"
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!'

By installing FileMan, you can write simple, portable file manipulation code in different Smalltalk dialects/file libraries.

About

FileMan is a thin wrapper for various Smalltalk file libraries. It provides simple, portable interfaces for manipulating files and directories.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published