mirror of
https://github.com/HACKERALERT/Picocrypt.git
synced 2024-12-27 00:02:36 +01:00
Add files via upload
This commit is contained in:
parent
4dec146f83
commit
e994186a0c
@ -942,13 +942,8 @@ func work() {
|
||||
}
|
||||
|
||||
// Open a temporary .zip for writing
|
||||
file, err := os.CreateTemp("", "*.zip")
|
||||
if err != nil { // Error, fall back to output folder
|
||||
inputFile = strings.TrimSuffix(outputFile, ".pcv")
|
||||
file, err = os.Create(inputFile)
|
||||
} else { // No issues, use the temporary .zip
|
||||
inputFile = file.Name()
|
||||
}
|
||||
inputFile = strings.TrimSuffix(outputFile, ".pcv")
|
||||
file, err := os.Create(inputFile)
|
||||
if err != nil { // Make sure file is writable
|
||||
accessDenied("Write")
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user