mirror of
https://github.com/safing/portbase
synced 2025-09-01 10:09:50 +00:00
Fix function name
This commit is contained in:
parent
60fc2177b2
commit
5cc7f24268
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ const powershellGetFileDescription = `Get-ItemProperty %q | Select -ExpandProper
|
|||
// name for the given binary path.
|
||||
func GetBinaryNameFromSystem(path string) (string, error) {
|
||||
// Get FileProperties via Powershell call.
|
||||
output, err := runPowershellCmd(fmt.Sprintf(powershellGetFileDescription, path))
|
||||
output, err := RunPowershellCmd(fmt.Sprintf(powershellGetFileDescription, path))
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("failed to get file properties of %s: %s", path, err)
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ $MemoryStream.Dispose()
|
|||
// for a given binary path and returns it as a data-URL.
|
||||
func GetBinaryIconFromSystem(path string) (string, error) {
|
||||
// Get Associated File Icon via Powershell call.
|
||||
output, err := runPowershellCmd(fmt.Sprintf(powershellGetIcon, path))
|
||||
output, err := RunPowershellCmd(fmt.Sprintf(powershellGetIcon, path))
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("failed to get file properties of %s: %s", path, err)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue