API
Table of Contents
Entry
Extends BaseEntry
Representation of one file or directory entry
All names are asolute (no leading '/') and build with '/'
Parameters
name
string file name inside of the repositorycontent
(string | Buffer | Stream) (optional, default undefined
)type
string type of the content (optional, default Entry.TYPE_BLOB
)mode
string file permissions (optional, default "100644"
)sha
string sha of the content
Properties
getString
Deliver content as string
Returns string content
getReadStream
Deliver content as read stream
Returns ReadableStream content
equalsMeta
compare meta info against other entry
Parameters
Returns boolean true if other has the same meta information (name...)
equalsContent
compare content against other entry
Parameters
Returns boolean true if other has the same content (bitwise)
equals
compare against other entry
Parameters
Returns boolean true if other describes the same content
BaseEntry
Representation of one file or directory entry
All names are asolute (no leading '/') and build with '/'
Parameters
name
string name inside of the container
Properties
name
string name inside of the container
getTypes
Returns Array<string> UTI types
CollectionEntryMixin
brings Directory attributes to entries
Parameters
EmptyContentEntry
Extends ContentEntry
represents a entry without content (content length = 0)
ContentEntry
Extends BaseEntry
general content access entries
equalsContent
compare content against other entry
Parameters
Returns boolean true if other has the same content (bitwise)
BufferContentEntryMixin
Content entries where a buffer is the primary data representation
Parameters
StreamContentEntryMixin
Content entries where a stream is the primary data representation
Parameters