Class Ole::Storage::DirClass
In: lib/ole/storage/file_system.rb
Parent: Object

an instance of this class is supposed to provide similar methods to the class methods of Dir itself.

pretty complete. like zip/zipfilesystem‘s implementation, i provide everything except chroot and glob. glob could be done with a glob to regex regex, and then simply match in the entries array… although recursive glob complicates that somewhat.

Dir.chroot, Dir.glob, Dir.[], and Dir.tmpdir is the complete list.

Methods

chdir   delete   entries   foreach   getwd   mkdir   new   new   open   pwd   rmdir   unlink  

Classes and Modules

Class Ole::Storage::DirClass::Dir

Public Class methods

Public Instance methods

delete(path)

Alias for rmdir

getwd()

Alias for pwd

there are some other important ones, like: chroot (!), glob etc etc. for now, i think

as for file, explicit alias to inhibit block

pwd is always stored without the trailing slash. we handle the root case here

unlink(path)

Alias for rmdir

[Validate]