Returns absolute Path to Folder.
@access		public
@return		string
328748
public function getRealPath()
	{
		$path	= realpath( $this->folderName );
		if( FALSE === $path )
			throw new RuntimeException( 'Folder "'.$this->folderName.'" is not existing and therefore has no Path' );
		return dirname( $path )."/";
	}
329933
private function getFilePath()
    {

        $tmpDir = realpath($this->getContainer()->get('kernel')->getRootDir() . '/../var/tmp/');
        $fileName = '/' . str_replace(':', '--', $this->getName()) . '.sock';

        if (!file_exists($tmpDir)) {
            mkdir($tmpDir);
        }

        return $tmpDir . $fileName;
    }
407797
public function getFilePath() {
		if ($this->path === null) {
			throw new NoPath('Path to a file was not been specified');
		}
		
		// Absolute path
		if ($this->path[0] === DIRECTORY_SEPARATOR) {
			return $this->path;
		}
		// Relative path
		return $this->getIntrospectiveData()->dirname . DIRECTORY_SEPARATOR . $this->path;
	}
472514
public function getPath()
    {
        $path = $this->path;

        if ( ! empty(static::$basePath)) {
            $path = static::$basePath.DS.ltrim($path, DS);
        }

        return $path;
    }
68323
public function path(){

        $args = \func_get_args();

        switch (\count($args)){

            case 1:

                $file  = $args[0];

                if ($this->isAbsolutePath($file) && \file_exists($file)) {
                    return $file;
                }

                $parts = \explode(':', $file, 2);

                if (count($parts)==2){
                    if (!isset($this->paths[$parts[0]])) return false;

                    foreach ($this->paths[$parts[0]] as &$path){
                        if (\file_exists($path.$parts[1])){
                            return $path.$parts[1];
                        }
                    }
                }

                return false;

            case 2:

                if (!isset($this->paths[$args[0]])) {
                    $this->paths[$args[0]] = [];
                }
                \array_unshift($this->paths[$args[0]], \rtrim(\str_replace(DIRECTORY_SEPARATOR, '/', $args[1]), '/').'/');

                return $this;
        }

        return null;
    }
444809
protected function assemblePath() {
		$root = $this->isRelative() ? '' : '/';
		
		if ($this->path === null) {
			return $root;
		}
		
		return $root . ltrim($this->path, '/');
	}
908390
public function pwd()
    {
        if ($this->path === null) {
            $this->path = $this->Folder->slashTerm($this->Folder->pwd()) . $this->name;
        }

        return $this->path;
    }
242454
public function getCurrentPath()
    {

        // if no filepath defined => autocreate path from table name
        if (!static::$filepath) {
            static::$filepath = "files/" . $this->getTable();
        }

        static::$currentPath = public_path(static::$filepath . '/' . $this->id);

        if (!is_dir(static::$currentPath)) {
            try {
                @mkdir(static::$currentPath, 0777, true);
            } catch (Exception $e) {
                Api::handleError($e);
            }
        }

        return static::$currentPath;
    }
258728
public function getRootPath()
  {
    $folder = WebApp::getPageFolder() . $this->code;
    if (StringTools::right($folder, 1) != '/') {
      $folder .= '/';
    }
    return $folder;
  }
1157447
public function getPath() {
		if ($this->isLocal) {
			return $this->basePath . DIRECTORY_SEPARATOR . $this->name;
		}
		
		return $this->basePath . $this->name;
	}
762002
public function getAbsolutePath()
    {
        if (!$this->isAbsolute()) {
            $filepath = stream_resolve_include_path($this->getPathname());
        } else {
            $filepath = realpath($this->getPathname());
        }
        return $filepath;
    }
287038
protected function absolutePath($path = '')
    {
        if (!$path) {
            $path = $this->path();
        }

        return '/'.$this->container().($path ? '/'.ltrim($path, '/') : '');
    }
150255
public function getFilepath()
    {
        if (isset($this->dirPath)) {
            $filepath = $this->dirPath .'/'.$this->filename;
        } else {
            $fileSystem = $this->createNew(FileSystem::class);
            $filepath   = $fileSystem->getCurrentWorkingDirectory() .'/'.$this->filename;    
        }
        return $filepath;        
    }
489750
public function getRealPath()
    {
        $path = parent::getRealPath();
        if (empty($path)) {
            $path = $this->getRootDir().$this->getFilename();
        }
        return $path;
    }
353055
public function getRelativePath()
    {
        $root = $this;
        while ($root->getParent() != null) {
            $root = $root->getParent();
        }

        return substr($this->path, strlen($root->getPath()) + 1);
    }
1037377
public function getFilePath() {

		if( isset( $this->url ) ) {

			return Yii::$app->fileManager->uploadDir . '/' . $this->url;
		}

		return false;
	}
466049
public function getSavePath()
    {
        if ( empty( $this->savePath ) )
        {
            $this->savePath = sprintf(
                static::SAVE_PATH,
                $this->getSiteInfo()
                     ->getSchema()
            );

            $dir = rtrim( $this->savePath, '/' );

            if ( ! is_dir( $dir ) )
            {
                @ mkdir( $dir, 0777, true );
            }
        }

        return $this->savePath;
    }