nice uint8,
srcPath, dstPath string,
chunkSize int64,
- minSize int64,
+ minSize, maxSize int64,
) error {
dstPathSpecified := false
if dstPath == "" {
if err != nil {
return err
}
+ if fileSize > maxSize {
+ return errors.New("Too big than allowed")
+ }
if archived && !dstPathSpecified {
dstPath += TarExt
}