mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-09-08 15:41:18 +02:00
updated tests
This commit is contained in:
@@ -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