mirror of
https://github.com/HACKERALERT/Picocrypt.git
synced 2024-12-30 19:32:33 +00:00
Add files via upload
This commit is contained in:
parent
4dec146f83
commit
e994186a0c
1 changed files with 2 additions and 7 deletions
|
@ -942,13 +942,8 @@ func work() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Open a temporary .zip for writing
|
// Open a temporary .zip for writing
|
||||||
file, err := os.CreateTemp("", "*.zip")
|
inputFile = strings.TrimSuffix(outputFile, ".pcv")
|
||||||
if err != nil { // Error, fall back to output folder
|
file, err := os.Create(inputFile)
|
||||||
inputFile = strings.TrimSuffix(outputFile, ".pcv")
|
|
||||||
file, err = os.Create(inputFile)
|
|
||||||
} else { // No issues, use the temporary .zip
|
|
||||||
inputFile = file.Name()
|
|
||||||
}
|
|
||||||
if err != nil { // Make sure file is writable
|
if err != nil { // Make sure file is writable
|
||||||
accessDenied("Write")
|
accessDenied("Write")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue