Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with file Operations #129

Open
AksharPrasanna opened this issue Sep 5, 2024 · 0 comments
Open

Issues with file Operations #129

AksharPrasanna opened this issue Sep 5, 2024 · 0 comments

Comments

@AksharPrasanna
Copy link

Hey,

We are trying to perform some file operations on the router using the gnoic client -

  • Getting file details (file state)
  • Deleting files (file remove)

There seems to be an issue when we perform either of the operations.

We are using the following command -
./gnoic -a <target>:<port> -u <user> -p <pass> --skip-verify file stat --path harddisk:/sample2.txt --debug

There is a File Stat response available -

stats: {
  path: "sample2.txt"
  last_modified: 1725506801117664898
  permissions: 755
  size: 3
  umask: 22
}

But we see this error -
ERRO[0014] "<target>:<port>" file "harddisk:/" isDir err: rpc error: code = InvalidArgument desc = gNOI: File-Stat: File does not exist

Same is the case with File Remove operation -

DEBU[0010] "<target>:<port>" remote="harddisk:/sample2.txt" is a directory 
DEBU[0010] "<target>:<port>" removing file "sample2.txt" 
ERRO[0010] "<target>:<port>" File Remove failed: rpc error: code = InvalidArgument desc = gNOI: File-Stat: File does not exist

Not sure what we are missing here. Please let us know if something needs to be updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant