On sam. 10 mars 2018 at 21:02, H. Hirzel <hannes.hirzel@gmail.com> wrote:
Hello

In Squeak and the dialect independent FileMan [1] there is


�� �� FileDirectory
�� �� �� ��assureExistence
�� �� �� �� �� �� "Make sure the current directory exists. If necessary, create all
parts in between"


What is the equivalent Pharo method? BTW is there a cheat sheet for
FileSystem operations in Pharo?

Hi,

There is #ensureCreateDirectory in Pharo but I don't know if it will check the parents exists. (And I don't have a Pharo image to check.


Thanks in advance
Hannes



---------------------------------------------------------
[1] http://wiki.squeak.org/squeak/6333

https://github.com/mumez/FileMan

FileMan provides an API to file and directory tasks.
FileMan is a thin wrapper for various Smalltalk file libraries. It
provides simple, portable interfaces for manipulating files and
directories.
...
Since 2015 FileMan is the default file library in Cuis Smalltalk.

--
Cyril Ferlicot
https://ferlicot.fr

http://www.synectique.eu
2 rue Jacques Pr��vert 01,
59650 Villeneuve d'ascq France