Skip to content

Commit 82165f7

Browse files
gronkeunknwon
authored andcommitted
Check if files are a symlink (#20)
* rename utlis.go to utils.go * TreeEntry IsLink function
1 parent 2ceb4d5 commit 82165f7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tree_entry.go

+4
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ func (te *TreeEntry) IsDir() bool {
6969
return te.mode == ENTRY_MODE_TREE
7070
}
7171

72+
func (te *TreeEntry) IsLink() bool {
73+
return te.mode == ENTRY_MODE_SYMLINK
74+
}
75+
7276
func (te *TreeEntry) Blob() *Blob {
7377
return &Blob{
7478
repo: te.ptree.repo,

utlis.go renamed to utils.go

File renamed without changes.

0 commit comments

Comments
 (0)