src/Control/Director.php
public static function getAbsFile($file)
    {
        // If already absolute
        if (self::is_absolute($file)) {
            return $file;
        }

        // If path is relative to public folder search there first
        if (self::publicDir()) {
            $path = Path::join(self::publicFolder(), $file);
            if (file_exists($path)) {
                return $path;
            }
        }

        // Default to base folder
        return Path::join(self::baseFolder(), $file);
    }
public static function getAbsFile($file)
    {
        // If already absolute
        if (self::is_absolute($file)) {
            return $file;
        }

        // If path is relative to public folder search there first
        if (self::publicDir()) {
            $path = Path::join(self::publicFolder(), $file);
            if (file_exists($path)) {
                return $path;
            }
        }

        // Default to base folder
        return Path::join(self::baseFolder(), $file);
    }
public static function getAbsFile ( $ file ) { // If already absolute if ( self :: is_absolute ( $ file ) ) { return $ file ; } // If path is relative to public folder search there first if ( self :: publicDir ( ) ) { $ path = Path :: join ( self :: publicFolder ( ) , $ file ) ; if ( file_exists ( $ path ) ) { return $ path ; } } // Default to base folder return Path :: join ( self :: baseFolder ( ) , $ file ) ; }
Given a filesystem reference relative to the site root, return the full file-system path.

@param string $file

@return string
Given a filesystem reference relative to the site root return the full file - system path .