-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compression, fixes, wording changes (#18)
* compression, fixes, wording changes * cleanup tmp files
- Loading branch information
1 parent
df93219
commit 106de15
Showing
12 changed files
with
412 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package memorystorage | ||
|
||
import ( | ||
"io/fs" | ||
"time" | ||
) | ||
|
||
type FileInfo struct { | ||
NameOut string // base name of the file | ||
SizeOut int64 // length in bytes for regular files; system-dependent for others | ||
ModeOut fs.FileMode // file mode bits | ||
ModTimeOut time.Time // modification time | ||
IsDirOut bool // abbreviation for Mode().IsDir() | ||
SysOut any // underlying data source (can return nil) | ||
} | ||
|
||
func (f FileInfo) Name() string { | ||
return f.NameOut | ||
} | ||
func (f FileInfo) Size() int64 { | ||
return f.SizeOut | ||
} | ||
func (f FileInfo) Mode() fs.FileMode { | ||
return f.ModeOut | ||
} | ||
func (f FileInfo) ModTime() time.Time { | ||
return f.ModTimeOut | ||
} | ||
func (f FileInfo) IsDir() bool { | ||
return f.IsDirOut | ||
} | ||
func (f FileInfo) Sys() any { | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.