Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mumez/fileman
FileMan is a thin wrapper for various Smalltalk file libraries. It provides simple, portable interfaces for manipulating files and directories.
https://github.com/mumez/fileman
cuis fileman pharo smalltalk
Last synced: about 2 months ago
JSON representation
FileMan is a thin wrapper for various Smalltalk file libraries. It provides simple, portable interfaces for manipulating files and directories.
- Host: GitHub
- URL: https://github.com/mumez/fileman
- Owner: mumez
- License: mit
- Created: 2012-07-08T03:48:58.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2023-03-22T09:26:49.000Z (almost 2 years ago)
- Last Synced: 2023-03-24T14:32:32.918Z (almost 2 years ago)
- Topics: cuis, fileman, pharo, smalltalk
- Language: Smalltalk
- Size: 123 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev) now includes FileMan as a default file library.
[Repository for Cuis version](https://github.com/mumez/Cuis-Smalltalk-FileMan) is kept for historical reasons.### VW version
VW version is available on [Public StORE repository](http://www.cincomsmalltalk.com/publicRepository/). Please load FileMan(Bundle) from StORE.
## Installation
### Pharo & Squeak
```smalltalk
Metacello new
baseline: 'FileMan';
repository: 'github://mumez/FileMan/repository';
load.
```### Older Squeak (before version 5.3)
```smalltalk
Installer squeaksource
project: 'MetacelloRepository';
install: 'ConfigurationOfFileMan'.
(Smalltalk at: #ConfigurationOfFileMan) perform: #load.
```## Example code
```smalltalk
"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.