We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee9acae commit 01ac50bCopy full SHA for 01ac50b
README.md
@@ -73,6 +73,25 @@ docker build -t transfersh .
73
docker run --publish 8080:8080 --rm transfersh --provider local --basedir /tmp/
74
```
75
76
+## Cleanup local straoge
77
+
78
+```
79
+#!/bin/bash
80
+VOLUME="/var/tmp"
81
+FILES=$(find $VOLUME -type f -name *.expires)
82
+TIMESTAMP=$(date '+%s')
83
84
+for file in $FILES
85
+do
86
+ expires=$(head -1 $file)
87
+ if [[ $expires -lt $TIMESTAMP ]]
88
+ then
89
+ rm -rf "$(echo $file | cut -d'.' -f1)"
90
+ rm $file
91
+ fi
92
+done
93
94
95
## Contributions
96
97
Contributions are welcome.
0 commit comments