mirror of
https://git.vectorsigma.ru/public/CasaOS.git
synced 2026-07-29 00:47:37 +00:00
Fixing bugs
Resolve application installation path errors
This commit is contained in:
@@ -146,3 +146,16 @@ func IsNotExistCreateFile(src string) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func ReadFullFile(path string) []byte {
|
||||
file, err := os.Open(path)
|
||||
if err != nil {
|
||||
return []byte("")
|
||||
}
|
||||
defer file.Close()
|
||||
content, err := ioutil.ReadAll(file)
|
||||
if err != nil {
|
||||
return []byte("")
|
||||
}
|
||||
return content
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user