Logo DataHubClient

RepoFile Type

A single file in a DataHub repository, as returned by the . Content is encoded according to Encoding (typically base64).

Constructors

Constructor Description

RepoFile(fileName, filePath, size, encoding, content, refName, blobId, commitId)

Full Usage: RepoFile(fileName, filePath, size, encoding, content, refName, blobId, commitId)

Parameters:
    fileName : string
    filePath : string
    size : int
    encoding : string
    content : string
    refName : string
    blobId : string
    commitId : string

Returns: RepoFile
fileName : string
filePath : string
size : int
encoding : string
content : string
refName : string
blobId : string
commitId : string
Returns: RepoFile

Instance members

Instance member Description

this.BlobId

Full Usage: this.BlobId

Returns: string

The SHA of the file blob.

Returns: string

this.CommitId

Full Usage: this.CommitId

Returns: string

The SHA of the last commit that touched the file.

Returns: string

this.Content

Full Usage: this.Content

Returns: string

The file content, encoded as described by Encoding.

Returns: string

this.Encoding

Full Usage: this.Encoding

Returns: string

The encoding of Content (typically base64).

Returns: string

this.FileName

Full Usage: this.FileName

Returns: string

The file's name without its directory path.

Returns: string

this.FilePath

Full Usage: this.FilePath

Returns: string

The file's full path relative to the repository root.

Returns: string

this.Ref

Full Usage: this.Ref

Returns: string

The branch, tag, or commit SHA the file was read from.

Returns: string

this.Size

Full Usage: this.Size

Returns: int

The file size in bytes.

Returns: int

Type something to start searching.