mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
WIP
This commit is contained in:
parent
96c2887fd0
commit
9b2b0fc122
22 changed files with 453 additions and 471 deletions
|
@ -137,7 +137,7 @@ func (c *OSCommand) SetRemoveFile(f func(string) error) {
|
|||
}
|
||||
|
||||
// FileType tells us if the file is a file, directory or other
|
||||
func (c *OSCommand) FileType(path string) string {
|
||||
func FileType(path string) string {
|
||||
fileInfo, err := os.Stat(path)
|
||||
if err != nil {
|
||||
return "other"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue