|
@@ -160,7 +160,7 @@ func NewFilesystem(fsType FilesystemType, uri string) Filesystem {
|
|
var fs Filesystem
|
|
var fs Filesystem
|
|
switch fsType {
|
|
switch fsType {
|
|
case FilesystemTypeBasic:
|
|
case FilesystemTypeBasic:
|
|
- fs = NewWalkFilesystem(newBasicFilesystem(uri))
|
|
|
|
|
|
+ fs = newBasicFilesystem(uri)
|
|
default:
|
|
default:
|
|
l.Debugln("Unknown filesystem", fsType, uri)
|
|
l.Debugln("Unknown filesystem", fsType, uri)
|
|
fs = &errorFilesystem{
|
|
fs = &errorFilesystem{
|
|
@@ -170,10 +170,15 @@ func NewFilesystem(fsType FilesystemType, uri string) Filesystem {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if l.ShouldDebug("walkfs") {
|
|
|
|
+ return NewWalkFilesystem(&logFilesystem{fs})
|
|
|
|
+ }
|
|
|
|
+
|
|
if l.ShouldDebug("fs") {
|
|
if l.ShouldDebug("fs") {
|
|
- fs = &logFilesystem{fs}
|
|
|
|
|
|
+ return &logFilesystem{NewWalkFilesystem(fs)}
|
|
}
|
|
}
|
|
- return fs
|
|
|
|
|
|
+
|
|
|
|
+ return NewWalkFilesystem(fs)
|
|
}
|
|
}
|
|
|
|
|
|
// IsInternal returns true if the file, as a path relative to the folder
|
|
// IsInternal returns true if the file, as a path relative to the folder
|