Refactor filesystem to not be dependent on a server struct
This commit is contained in:
12
server/filesystem/stat_windows.go
Normal file
12
server/filesystem/stat_windows.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package filesystem
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// On linux systems this will return the time that the file was created.
|
||||
// However, I have no idea how to do this on windows, so we're skipping it
|
||||
// for right now.
|
||||
func (s *Stat) CTime() time.Time {
|
||||
return s.Info.ModTime()
|
||||
}
|
||||
Reference in New Issue
Block a user