mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-03 04:50:14 +08:00
migration: migrate NodeJS code base to Golang
This commit is contained in:
8
server/common/files.go
Normal file
8
server/common/files.go
Normal file
@ -0,0 +1,8 @@
|
||||
package common
|
||||
|
||||
func IsDirectory(path string) bool {
|
||||
if string(path[len(path)-1]) != "/" {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user