Skip to content

Commit 73956f3

Browse files
committed
Enhance DeepFS comment
1 parent 7738e76 commit 73956f3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fs.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,9 +676,14 @@ func (f *ArchiveFS) Sub(dir string) (fs.FS, error) {
676676
// for accessing data in an "ordinary" walk of the disk, without needing to
677677
// first extract all the archives and use more disk space.
678678
//
679+
// Archives within archives are not supported.
680+
//
679681
// The listing of archive entries is retained for the lifetime of the
680682
// DeepFS value for efficiency, but this can use more memory if archives
681683
// contain a lot of files.
684+
//
685+
// The exported fields may be changed during the lifetime of a DeepFS value
686+
// (but not concurrently). It is safe to use this type as an FS concurrently.
682687
type DeepFS struct {
683688
// The root filepath on disk.
684689
Root string

0 commit comments

Comments
 (0)