mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-22 00:17:23 +08:00
fix multiple bugs
This commit is contained in:
@@ -30,3 +30,13 @@ func GetFileSize(file *os.File) (size int64, err error) {
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func FileExists(filename string) bool {
|
||||
|
||||
_, err := os.Stat(filename)
|
||||
if os.IsNotExist(err) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user