mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
use epoch timestamp instead of current timestamp for unknown modification times
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -165,7 +165,7 @@ func (c *Connection) Stat(name string) (os.FileInfo, error) {
|
||||
if err != nil {
|
||||
if c.isListDirWithWildcards(path.Base(name)) {
|
||||
c.doWildcardListDir = true
|
||||
return vfs.NewFileInfo(name, true, 0, time.Now(), false), nil
|
||||
return vfs.NewFileInfo(name, true, 0, time.Unix(0, 0), false), nil
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user