Skip to content

Commit

Permalink
update copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
mandelsoft committed Feb 11, 2022
1 parent f32fbf7 commit 06b6031
Show file tree
Hide file tree
Showing 61 changed files with 69 additions and 63 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@

## VFS - A Virtual Filesystem for GO


[![CI Build status](https://app.travis-ci.com/mandelsoft/vfs.svg?branch=master)](https://app.travis-ci.com/github/mandelsoft/vfs)
[![Go Report Card](https://goreportcard.com/badge/github.com/mandelsoft/vfs)](https://goreportcard.com/report/github.com/mandelsoft/vfs)


A virtual filesystem enables programs to transparently work on any kind
of filesystem-like data source besides the real operating system filesystem
using a uniform single API.
Expand Down
2 changes: 1 addition & 1 deletion cmd/play/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion cmd/symlink/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
4 changes: 2 additions & 2 deletions cmd/vfs/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down Expand Up @@ -104,11 +104,11 @@ func main() {
Error(fmt.Errorf("read 1 failed: %d %q", n, string(buf[:n])))
}
n, err = f.Read(buf[:])
Assert(err)
if n != 5 && string(buf[:n]) != "test\n" {
Error(fmt.Errorf("read 2 failed: %d %q", n, string(buf[:n])))
}
f.Close()
list(wdfs, "d")
list(wdfs, "pkg")

}
2 changes: 1 addition & 1 deletion cmd/yamlfs/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/composefs/compose.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/composefs/doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/cwdfs/cwd.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/cwdfs/doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/layerfs/doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/layerfs/file.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/layerfs/filedata.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
4 changes: 2 additions & 2 deletions pkg/layerfs/layer.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down Expand Up @@ -126,7 +126,7 @@ func (l *LayerFileSystem) create(name string, fn func(path string, deleted bool)

path := vfs.Join(l.layer, parent.path, n)
// entry was formerly deleted from layer, if
// - it is explicilty maked as deleted
// - it is explicitly marked as deleted
// - the complete base folder content is marked as deleted AND the base layer contains the entry
del := vfs.Join(l.layer, parent.path, del_prefix+n)
deleted, _ := vfs.Exists(l.layer, del)
Expand Down
2 changes: 1 addition & 1 deletion pkg/layerfs/layer_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/layerfs/layer_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/memoryfs/dir.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/memoryfs/doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/memoryfs/filedata.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/memoryfs/memory.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/memoryfs/memory_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/memoryfs/memory_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/osfs/doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/osfs/osfs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/osfs/osfs_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/osfs/osfs_unix.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// +build !windows

/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/osfs/osfs_windows.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/osfs/tempfs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/osfs/tempfs_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/projectionfs/doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/projectionfs/projection_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/projectionfs/projection_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/projectionfs/projectionfs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/readonlyfs/doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/readonlyfs/readonly_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/readonlyfs/readonly_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/readonlyfs/readonlyfs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/test/standard.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/test/testutils.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/base.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/eval.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/file.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/fileInfo.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/fssupport.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
4 changes: 2 additions & 2 deletions pkg/utils/mappedfs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down Expand Up @@ -95,7 +95,7 @@ func (m *MappedFileSystem) mapPath(path string, link ...bool) (vfs.FileSystem, s
case ".", "":
continue
case "..":
r, b = vfs.Split(m.base, r)
r, _ = vfs.Split(m.base, r)
if r == "" {
r = "/"
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/sorter.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/utils.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/vfs/errors.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/vfs/errors_unix.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// +build !windows

/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/vfs/errors_windows.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/vfs/eval.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
2 changes: 1 addition & 1 deletion pkg/vfs/interface.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* Copyright 2022 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
Expand Down
Loading

0 comments on commit 06b6031

Please sign in to comment.