lib/VirtFs.php
public function addDirectory($path, $mountpoint='/', $writable=false, $priority=0) {
        $mounter = new Mounter\DirectoryMounter($path, $mountpoint);
        $mounter->setPriority($priority);
        $mounter->setIsWritable($writable);
        $this->nodes[] = $mounter;
        return $this;
    }
public function addDirectory($path, $mountpoint='/', $writable=false, $priority=0) {
        $mounter = new Mounter\DirectoryMounter($path, $mountpoint);
        $mounter->setPriority($priority);
        $mounter->setIsWritable($writable);
        $this->nodes[] = $mounter;
        return $this;
    }
public function addDirectory ( $ path , $ mountpoint = '/' , $ writable = false , $ priority = 0 ) { $ mounter = new Mounter \ DirectoryMounter ( $ path , $ mountpoint ) ; $ mounter -> setPriority ( $ priority ) ; $ mounter -> setIsWritable ( $ writable ) ; $ this -> nodes [ ] = $ mounter ; return $ this ; }
Add a directory to the virtual filesystem.

@param string The directory to mount
@param string The mountpoint in the virtual filesystem
@param bool If true, the directory will be considered a candidate for writing operations.
@param int Priority of this location when matching paths
@return \NoccyLabs\VirtFs\VirtFs
Add a directory to the virtual filesystem .