Return the complete file path
@param DataContainer
@return string
481596
public function getFileSizeWidget(\DataContainer $dc)
  {
    $doc = $dc->activeRecord;

    return '
<div class="w50 widget">
  <h3><label for="ctrl_purge">'.$GLOBALS['TL_LANG']['tl_dms_documents']['data_file_size'][0].'</label></h3>
  <input type="text" class="tl_text" value="' . $doc->data_file_size . '" disabled="">
  <p class="tl_help tl_tip">'.$GLOBALS['TL_LANG']['tl_dms_documents']['data_file_size'][1].'</p>
</div>';
  }
794036
protected function getFilePath()
    {
        $path = $this->cachePath . DIRECTORY_SEPARATOR . $this->cacheDirectory . DIRECTORY_SEPARATOR;
        $path = str_replace(['\\\\', '//'], [DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR], $path);

        return $path;
    }
484312
def get_data_path(filename):
    
    if os.path.isabs(filename):
        return filename
    else:
        return os.path.join(get_data_dir(), filename)
1097402
function getDBAExtensionFilePath()
    {
        $activeExtensions = eZExtension::activeExtensions();
        $dataTypeString = $this->DataTypeString;
        $dbaFileName = $this->getDBAFileName();
        $fileName = false;
        foreach ( $activeExtensions as $activeExtension )
        {
            $extesionFileName = eZExtension::baseDirectory() . '/' . $activeExtension .
                                '/datatypes/' . $dataTypeString . '/' . $dbaFileName;
            if ( file_exists( $extesionFileName ) )
            {
                $fileName = $extesionFileName;
                break;
            }
        }
        return $fileName;
    }
999191
def data_file(self):
        
        return os.path.join(self.upload_directory, self.properties[datastore.PROPERTY_FILENAME])
742229
public function getDataFixturesDirectoryPath(): ?string
    {
        $path = $this->getPath();

        if (empty($path)) {
            return null;
        }

        return Miscellaneous::concatenatePaths([
            $path,
            static::PATH_DATA_FIXTURES,
        ]);
    }
389006
public function getWatermarkFilePath()
    {
        $filePath = false;

        if (!($file = $this->getWatermarkFile())) {
            return $filePath;
        }
        $baseDir = $this->uploader->getBasePath();

        $candidates = [
            $baseDir . '/watermark/stores/' . $this->storeManager->getStore()->getId() . $file,
            $baseDir . '/watermark/websites/' . $this->storeManager->getWebsite()->getId() . $file,
            $baseDir . '/watermark/default/' . $file,
            $baseDir . '/watermark/' . $file,
        ];
        foreach ($candidates as $candidate) {
            if ($this->mediaDirectory->isExist($candidate)) {
                $filePath = $this->mediaDirectory->getAbsolutePath($candidate);
                break;
            }
        }
        if (!$filePath) {
            $filePath = $this->viewFileSystem->getStaticFileName($file);
        }

        return $filePath;
    }
445702
public function readData(DataContainer $data)
    {
        $this->fileName = $data->getString('f', '');
        $this->tintColor->readData($data->getObject('c'));
        $this->offsetX = $data->getInteger('x', 0);
        $this->offsetY = $data->getInteger('y', 0);
        $this->scale = $data->getFloat('s', 1.);
        return $this;
    }
441663
def get_text_path(self):
        
        for res in self.dsDoc['dataResources']:
            resPath = res['resPath']
            resType = res['resType']
            isCollection = res['isCollection']
            if resType == 'text' and isCollection:
                return os.path.join(self.dsHome, resPath)

        # if the for loop is over and no image directory is found, then return None
        raise RuntimeError('could not find learningData file the dataset')
539668
def data_file(self):
        
        path = os.getcwd() + '/' + self.lazy_folder
        return path + self.data_filename
927279
public function readData(DataContainer $data)
    {
        $this->name = $data->getString('n', '');
        $this->mainModName = $data->getString('m', '');
        $this->loadedModNames = array_map('strval', $data->getArray('l'));
        $this->loadedOptionalModNames = array_map('strval', $data->getArray('o'));
        $this->itemHashes = array_map('strval', $data->getArray('i'));
        $this->recipeHashes = array_map('strval', $data->getArray('r'));
        $this->machineHashes = array_map('strval', $data->getArray('a'));
        $this->iconHashes = array_map('strval', $data->getArray('c'));
        return $this;
    }
1194366
@Nonnull
    public static Path getApprovalPath(Path filePath) {
        Pre.notNull(filePath, "filePath");

        String s = filePath.toString();
        int extensionIndex = s.lastIndexOf('.');

        if (extensionIndex == -1) {
            return Paths.get(s + FOR_APPROVAL_EXTENSION);
        }

        int lastPartOfPath = s.lastIndexOf('/');
        if (lastPartOfPath != -1 && lastPartOfPath > extensionIndex) {
            //there was no extension and the directory contains dots.
            return Paths.get(s + FOR_APPROVAL_EXTENSION);
        }

        String firstPart = s.substring(0, extensionIndex);
        String extension = s.substring(extensionIndex);

        return Paths.get(firstPart + FOR_APPROVAL_EXTENSION + extension);

    }
701743
public function generateWizard($dataContainer)
    {
        if (!isset($GLOBALS['TL_DCA'][$dataContainer->table]['fields'][$dataContainer->field]['eval']['coordinates'])) {
            return '';
        }

        return sprintf(
            '<a href="#" onclick="$(\'ctrl_%s_toggle\').click();return false;"><img src="%s"></a>',
            $GLOBALS['TL_DCA'][$dataContainer->table]['fields'][$dataContainer->field]['eval']['coordinates'],
            'bundles/leafletgeocodewidget/img/map.png'
        );
    }
561814
private static File getDataDir() {
        File rval = null;

        // First check to see if a data directory has been explicitly configured via system property
        String dataDir = System.getProperty("apiman.bootstrap.data_dir"); //$NON-NLS-1$
        if (dataDir != null) {
            rval = new File(dataDir);
        }

        // If that wasn't set, then check to see if we're running in wildfly/eap
        if (rval == null) {
            dataDir = System.getProperty("jboss.server.data.dir"); //$NON-NLS-1$
            if (dataDir != null) {
                rval = new File(dataDir, "bootstrap"); //$NON-NLS-1$
            }
        }

        // If that didn't work, try to locate a tomcat data directory
        if (rval == null) {
            dataDir = System.getProperty("catalina.home"); //$NON-NLS-1$
            if (dataDir != null) {
                rval = new File(dataDir, "data/bootstrap"); //$NON-NLS-1$
            }
        }

        // If all else fails, just let it return null
        return rval;
    }
1114352
public function getFullPath()
    {
        if ($this->Filename) {
            return DMS::inst()->getStoragePath() . DIRECTORY_SEPARATOR
                . $this->Folder . DIRECTORY_SEPARATOR . $this->Filename;
        }

        return null;
    }
496765
function getWorkingPath(file) {

      var completePath = JSON.stringify(file).slice(2,-2).split('/'),
        lastPathElement = completePath.pop(),
        fileDirectory = completePath.splice(lastPathElement).join('/');

        return fileDirectory;
    }
577912
def _get_datapath(self):
        
        if self._datapath is None:
            raise OSError(errno.ENOENT, "You didn't provide any datapath for %r" % self.filename)

        return self._datapath