summaryrefslogtreecommitdiff
path: root/model/storage.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-05-01 13:20:22 +0200
committerxengineering <me@xengineering.eu>2024-05-01 13:20:22 +0200
commit390642f9bbc12f0b435f343fc35f4a47c5ec7680 (patch)
tree7747b695d7190b3131f4b155f7c29abb7efc7121 /model/storage.go
parent4cc0677b79edeed05ead23def152ac45f35f556d (diff)
downloadceres-390642f9bbc12f0b435f343fc35f4a47c5ec7680.tar
ceres-390642f9bbc12f0b435f343fc35f4a47c5ec7680.tar.zst
ceres-390642f9bbc12f0b435f343fc35f4a47c5ec7680.zip
Do not remove storage folder
This is not useful in production. Furthermore in the debug use case the default storage path is now ./storage which can easily be removed by `rm -rf storage`. This also allows to not remove the storage folder for further analysis of the storage folder.
Diffstat (limited to 'model/storage.go')
-rw-r--r--model/storage.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/model/storage.go b/model/storage.go
index e7d1fbc..bfebb6a 100644
--- a/model/storage.go
+++ b/model/storage.go
@@ -24,12 +24,3 @@ func InitStorage(path string, version string) {
log.Printf("Storage directory: %s\n", path)
}
-
-func RemoveStorage(path string) {
- var err error = os.RemoveAll(path)
- if err != nil {
- log.Printf("Failed to remove storage folder: %v\n", err)
- } else {
- log.Printf("Removed storage folder %s\n", path)
- }
-}