Compare commits

..

2 Commits

Author SHA1 Message Date
563b11fd33 Merge branch 'main' of https://git.fluffy.pw/leafus/s3-client
All checks were successful
Release Version / build (push) Successful in 7s
2024-09-29 12:56:37 +02:00
87df3b82d5 Add file not existent handling 2024-09-29 12:54:56 +02:00

View File

@ -92,6 +92,11 @@ func main() {
os.Exit(1)
}
if _, err := os.Stat(*filePath); os.IsNotExist(err) {
fmt.Printf("File does not exist: %s\n", *filePath)
os.Exit(1)
}
file, err := os.Open(*filePath)
if err != nil {
fmt.Printf("Error opening file: %s\n", err)