M1\Vars\Resource\FileResource::makePaths PHP Method

makePaths() private method

Make the paths used for the filename variable
private makePaths ( string $file )
$file string The passed file
    private function makePaths($file)
    {
        $file = realpath($file);
        $base_path = $this->provider->vars->getPath();
        $filesystem = new Filesystem();
        $abs_path = $filesystem->makePathRelative($file, $base_path);
        $this->file = $file;
        $this->filename = rtrim($abs_path, "/");
    }