Rename content/fs to content/local
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
		
							
								
								
									
										15
									
								
								content/local/store_linux.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								content/local/store_linux.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
package local
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"os"
 | 
			
		||||
	"syscall"
 | 
			
		||||
	"time"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func getStartTime(fi os.FileInfo) time.Time {
 | 
			
		||||
	if st, ok := fi.Sys().(*syscall.Stat_t); ok {
 | 
			
		||||
		return time.Unix(int64(st.Ctim.Sec), int64(st.Ctim.Nsec))
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return fi.ModTime()
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user