1 year ago

#332743

test-img

João Pedro P. Monteiro

Is there a way to pass a remote file through os.stat(path) function?

Go makes available for us to use the os.stat(path) function to returns a FileInfo describing the named file. I was trying to get the file path on a remote server, but i can't formulate a path, to be used in this function, that should be like:

os.stat("root@xx.xx.xxx.xxx.xxx:/path/file")

Is there a way to call this function asking for a remote file?

linux

bash

go

operating-system

remote-server

0 Answers

Your Answer

Accepted video resources