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.

Fairly complete - like zip/zipfilesystem‘s implementation, i provide everything except chroot and glob. glob could be done with a glob to regex conversion, 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 of methods still missing.

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

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]