This website works better with JavaScript.
Home
Explore
Help
Sign In
writeas
/
writeas-cli
mirror of
https://github.com/writeas/writeas-cli
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
10
Activity
Browse Source
Fix Exists() test in fileutils
pull/21/head
Matt Baer
5 years ago
parent
052c792391
commit
a63445f92a
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
fileutils/fileutils.go
+ 1
- 1
fileutils/fileutils.go
View File
@@ -9,7 +9,7 @@ import (
// Exists returns whether or not the given file exists
func Exists(p string) bool {
if _, err := os.Stat(p);
err == nil
{
if _, err := os.Stat(p);
!os.IsNotExist(err)
{
return true
}
return false
Write
Preview
Loading…
Cancel
Save