mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-25 22:40:25 +01:00
updated tests
This commit is contained in:
1 parent
80608e8687
commit
f544fa0c81
4 files changed
+152
-11
No files matched your search
@@ -1264,6 +1264,7 @@ type App interface {
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// Filesystem event hooks
|
||||
// (not publicly exposed until file_field refactoring)
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
// onFilesystemNewWriter is an internal hook for app.NewFilesystem()
|
||||
|
||||
@@ -299,7 +299,7 @@ func copyFileToZip(w *zip.Writer, localPath string, zipPath string) error {
|
||||
}
|
||||
|
||||
if info.IsDir() {
|
||||
return nil
|
||||
return fmt.Errorf("%s is a directory and not a regular file", localPath)
|
||||
}
|
||||
|
||||
h, err := zip.FileInfoHeader(info)
|
||||
|
||||
Reference in new issue
Block a user