Gets full path for each source file in the source fileset.
488224
private function getInfoSourceFiles(): void
  {
    $this->logVerbose('Get resource files info.');

    // Get the base dir of the sources.
    $dir = $this->getProject()->getReference($this->sourcesFilesetId)->getDir($this->getProject());

    foreach ($this->sourceFileNames as $theFileName)
    {
      $filename                          = $dir.'/'.$theFileName;
      $real_path                         = realpath($filename);
      $this->sourceFilesInfo[$real_path] = $filename;
    }

    $suc = ksort($this->sourceFilesInfo);
    if ($suc===false) $this->logError("ksort failed.");
  }
350898
public Set<String> getSourceFolders() {
		Set<String> sourceFolders = Sets.newLinkedHashSet();
		for (SourceMapping mapping : getSourceMappings()) {
			sourceFolders.add(mapping.getSourceFolder());
		}
		return sourceFolders;
	}
591802
def determine_path
      if source_line.file == SourceLine::DEFAULT_FILE
        return source_line.file
      end

      full_path = File.expand_path(source_line.file)
      pwd       = Dir.pwd

      if full_path.start_with?(pwd)
        from = Pathname.new(full_path)
        to   = Pathname.new(pwd)

        return from.relative_path_from(to).to_s
      else
        return full_path
      end
    end
812525
def files(self, absolute=False):
        """"""

        _paths = []

        for arg in self.all:
            for path in _expand_path(arg):
                if os.path.exists(path):
                    if absolute:
                        _paths.append(os.path.abspath(path))
                    else:
                        _paths.append(path)

        return _paths
1184211
def dest_fpath(self, source_fpath: str) -> str:
        """"""
        relative_fpath = os.path.join(*source_fpath.split(os.sep)[1:])
        relative_dirpath = os.path.dirname(relative_fpath)

        source_fname = relative_fpath.split(os.sep)[-1]
        base_fname = source_fname.split('.')[0]
        dest_fname = f'{base_fname}.json'

        return os.path.join(self.dest_dir, relative_dirpath, dest_fname)
1267008
def filenames(self):
        
        return [os.path.basename(source) for source in self.sources if source]
1070309
def filepath(self, filename):
        """"""

        return os.path.join(self.node.full_path, filename)
729666
def get_files (dirname):
    """"""
    for entry in os.listdir(dirname):
        fullentry = os.path.join(dirname, entry)
        if os.path.islink(fullentry):
            continue
        if os.path.isfile(fullentry):
            yield entry
        elif os.path.isdir(fullentry):
            yield entry+"/"
766413
def filepath(self) -> str:
        """"""
        return os.path.join(self._dirpath, self.name + '.nc')
427601
def __find_source_files(self):
        
        for dir_path, _, files in os.walk(self._source_directory):
            for name in files:
                if name.lower().endswith(self._source_file_extension):
                    basename = os.path.splitext(os.path.basename(name))[0]
                    relative_path = os.path.relpath(os.path.join(dir_path, name))

                    if basename in self._source_file_names:
                        self._io.error("Files '{0}' and '{1}' have the same basename.".
                                       format(self._source_file_names[basename], relative_path))
                        self.error_file_names.add(relative_path)
                    else:
                        self._source_file_names[basename] = relative_path
321468
def _get_path(dataset_name):
  """"""
  path = _checksum_paths().get(dataset_name, None)
  if path:
    return path
  msg = ('No checksums file could be find for dataset %s. Please create one in '
         'one of: %s') % (dataset_name, ', '.join(_CHECKSUM_DIRS))
  raise AssertionError(msg)
1135134
def path(self):
        """"""
        if (self.source_file.startswith('a/') and
                self.target_file.startswith('b/')):
            filepath = self.source_file[2:]
        elif (self.source_file.startswith('a/') and
              self.target_file == '/dev/null'):
            filepath = self.source_file[2:]
        elif (self.target_file.startswith('b/') and
              self.source_file == '/dev/null'):
            filepath = self.target_file[2:]
        else:
            filepath = self.source_file
        return filepath
1162752
def get_full_archive_path(self, path):
        
        return os.path.join(self.archive_dir, path.lstrip('/'))
1267622
def getSourcePaths(self, makeGlyphs=True, makeKerning=True, makeInfo=True):
        
        paths = []
        for name in self.sources.keys():
            paths.append(self.sources[name][0].path)
        return paths
398044
function getSourceDestinationPath (srcPath) {
        let dests = _.keys(options.files);
        return _.find(dests, function (destPath) {
            let paths = options.files[destPath];
            return _.find(paths, function (p) {
                return p === srcPath || srcPath.indexOf(p) !== -1;
            });
        });
    }
758980
def find_source_files(input_path, excludes):
    

    java_files = []

    input_path = os.path.normpath(os.path.abspath(input_path))

    for dirpath, dirnames, filenames in os.walk(input_path):
        if is_excluded(dirpath, excludes):
            del dirnames[:]
            continue

        for filename in filenames:
            if filename.endswith(".java"):
                java_files.append(os.path.join(dirpath, filename))

    return java_files
710535
def iterSourceCode(paths):
    
    for path in paths:
        if os.path.isdir(path):
            for dirpath, dirnames, filenames in os.walk(path):
                for filename in filenames:
                    full_path = os.path.join(dirpath, filename)
                    if isPythonFile(full_path):
                        yield full_path
        else:
            yield path