mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-21 03:44:17 +08:00
实现导入Markdown
This commit is contained in:
@@ -151,11 +151,10 @@ func AbsolutePath(p string) (string, error) {
|
||||
// FileExists reports whether the named file or directory exists.
|
||||
func FileExists(name string) bool {
|
||||
if _, err := os.Stat(name); err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
return false
|
||||
}
|
||||
return false
|
||||
}else{
|
||||
return true
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func FormatBytes(size int64) string {
|
||||
|
Reference in New Issue
Block a user