layout
default
menu_item
api
title
TreeEntry
description
Version 0.5.0
return_to
API Documentation Index
/api/
sections
#getBlob
#getTree
#isBlob
#isDirectory
#isFile
#isTree
#path
#sha
#toString
FILEMODE
Instance Variables
#getBlob
#getTree
#isBlob
#isDirectory
#isFile
#isTree
#path
#sha
#toString
#FILEMODE
#ivars
treeEntry . getBlob ( ) . then ( function ( blob ) {
// Use blob
} ) ;
Retrieve the tree for this entry. Make sure to call isTree first!
treeEntry . getTree ( ) . then ( function ( tree ) {
// Use tree
} ) ;
Retrieve the tree for this entry. Make sure to call isTree first!
var boolean = treeEntry . isBlob ( ) ;
Is this TreeEntry a blob? Alias for isFile
TreeEntry# isDirectory Sync
var boolean = treeEntry . isDirectory ( ) ;
Is this TreeEntry a directory? Alias for isTree
var boolean = treeEntry . isFile ( ) ;
Is this TreeEntry a blob? (i.e., a file)
var boolean = treeEntry . isTree ( ) ;
Is this TreeEntry a tree? (i.e., a directory)
var string = treeEntry . path ( ) ;
Returns the path for this entry.
var string = treeEntry . sha ( ) ;
Retrieve the SHA for this TreeEntry.
Alias for path
| Flag | Value |
| --- | --- | --- |
| TreeEntry.FILEMODE. UNREADABLE | 0 |
| TreeEntry.FILEMODE. TREE | 16384 |
| TreeEntry.FILEMODE. BLOB | 33188 |
| TreeEntry.FILEMODE. EXECUTABLE | 33261 |
| TreeEntry.FILEMODE. LINK | 40960 |
| TreeEntry.FILEMODE. COMMIT | 57344 |
Variable
Type
attr
Number
filename
String
filenameLen
Number
oid
Oid