Skip to content

Latest commit

History

37 Commits

Folders and files

NameName
Last commit message
Last commit date

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

Metacellonewbaseline:'FileMan';
repository:'github://mumez/FileMan/repository';
load.

Older Squeak (before version 5.3)

Installer squeaksource
project:'MetacelloRepository';
install:'ConfigurationOfFileMan'. (Smalltalkat:#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

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages