@@ -148,10 +148,10 @@ func (l *LayeredFS) ListFiles(name string, fileMode ...bool) ([]string, error) {
148
148
// * true: only files will be returned.
149
149
// * false: only directories will be returned.
150
150
func (l * LayeredFS ) ListAllFiles (name string , fileMode ... bool ) ([]string , error ) {
151
- return l . listAllFiles (l .layers , name , fileMode ... )
151
+ return listAllFiles (l .layers , name , fileMode ... )
152
152
}
153
153
154
- func ( l * LayeredFS ) listAllFiles (layers []* Layer , name string , fileMode ... bool ) ([]string , error ) {
154
+ func listAllFiles (layers []* Layer , name string , fileMode ... bool ) ([]string , error ) {
155
155
fileMap := map [string ]bool {}
156
156
var list func (dir string ) error
157
157
list = func (dir string ) error {
@@ -216,7 +216,7 @@ func (l *LayeredFS) WatchLocalChanges(ctx context.Context, callback func()) {
216
216
if layer .localPath == "" {
217
217
continue
218
218
}
219
- layerDirs , err := l . listAllFiles ([]* Layer {layer }, "." , false )
219
+ layerDirs , err := listAllFiles ([]* Layer {layer }, "." , false )
220
220
if err != nil {
221
221
log .Error ("Unable to list directories for asset local file-system %q: %v" , layer .localPath , err )
222
222
continue
0 commit comments