Store provided instead of full path
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ read :: proc(path: string) -> Asset {
|
|||||||
defer os.close(f)
|
defer os.close(f)
|
||||||
|
|
||||||
path := path // shadow parameter
|
path := path // shadow parameter
|
||||||
path = strings.clone(os.name(f))
|
path = strings.clone(path)
|
||||||
|
|
||||||
size, size_err := os.file_size(f)
|
size, size_err := os.file_size(f)
|
||||||
if size_err != nil {
|
if size_err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user