Get the filesystem path for a key.

        Arguments:
            key: Key.

        Returns:
            str: Absolute path.
338784
def keypath(self, key):
        
        return fs.path(self.path, self.escape_key(key))
1084059
protected function getFilePathFromKey($key)
    {
        $key = basename($key);
        $badChars = ['-', '.', '_', '\\', '*', '\"', '?', '[', ']', ':', ';', '|', '=', ','];
        $key = str_replace($badChars, '/', $key);
        while (strpos($key, '//') !== false) {
            $key = str_replace('//', '/', $key);
        }

        $directoryToCreate = $this->config['cacheDirectory'];

        $endOfDirectory = strrpos($key, '/');

        if ($endOfDirectory !== false) {
            $directoryToCreate = $this->config['cacheDirectory'].substr($key, 0, $endOfDirectory);
        }

        if (!file_exists($directoryToCreate)) {
            $result = mkdir($directoryToCreate, 0777, true);
            if (!$result) {
                return false;
            }
        }

        $filePath = $this->config['cacheDirectory'].$key.'.'.$this->config['fileExtension'];

        return $filePath;
    }
162913
def key(self):
        
        return self.make_key(
            self._instance._name,
            self._instance.pk.get(),
            self.name,
        )
1240659
def _get_metadata_path(self, key):
        
        return "{group}/meta/{key}/meta".format(group=self.group._v_pathname,
                                                key=key)
1336384
public function getPathFromKey(string $key): string
    {
        return sprintf($this->dataPattern, $this->dataFolder, $key, substr($key, 0, 2));
    }
562017
def path(self):
        
        if len(self.heads) == 1:
            return _fmt_mfs_path(self.heads.keys()[0], self.heads.values()[0])
        else:
            return "(" + "|".join(
                _fmt_mfs_path(k, v) for (k, v) in self.heads.items()
            ) + ")"
284220
def get(self, key):  
        
        res = self.connection.get(key)
        print(res)
        return res
698115
def get_upload_path(self):
        
        location = self.get_storage().location
        return self.cleaned_data['key_name'][len(location):]
255573
def ssh_key(key):
        
        value = str(key)
        # Ensure the file exists locally
        if not os.path.isfile(value):
            raise Exception("File Does not Exist: %s" % key)
        return value
318930
private function computePath($key)
    {
        $directory = $this->getDirectory();
        if (null === $directory || '' === $directory) {
            return $key;
        }

        return sprintf('%s/%s', $directory, $key);
    }
499463
def path(self):
    """"""
    if self.filename:
      map_path = os.path.join(self.directory, self.filename)
      if not map_path.endswith(".SC2Map"):
        map_path += ".SC2Map"
      return map_path
871913
def get_metadata(self, key) -> str:
        
        return self.metadata[key] if key in self.metadata else None
1172311
def get_thumb(self, path, key, format):
        
        thumbpath = self.get_thumbpath(path, key, format)
        fullpath = os.path.join(self.out_path, thumbpath)
        if os.path.isfile(fullpath):
            url = self.get_url(thumbpath)
            return Thumb(url, key)
        return Thumb()
1339829
def file_path(self):
        
        return os.path.join(keyring.util.platform.data_root(), self.filename)
481296
def cache_path(self):
        
        cache_path = os.path.join(os.path.dirname(__file__), '..', 'cache')
        if not os.path.exists(cache_path):
            os.mkdir(cache_path)
        return cache_path
400739
public final String getPath(final String key) {
        StringBuilder result = new StringBuilder();
        addPathTo(result);
        result.append(".");
        result.append(getPathElement(key));
        return result.toString();
    }
653183
private function getKeyPath($key)
    {
        $this->validateKey($key);
        $file = sha1($key);
        $this->hashDirectory->processFile($file);
        return $this->hashDirectory->getFileStoragePath();
    }