1

Also I want to move this file in another folder and give output file on another folder. All folders are on Egnyte and using Python

client = egnyte.EgnyteClient({"domain": "apidemo.egnyte.com",
"User_Name": "Password"})

folder = client.folder("/Shared/Data/Individuals/Input")

Client use for login on Egnyte.

Folder contains the address of file and now how I read file in this folder and file name is "abc.txt".

How can I read this file and move on location "/Shared/Data/Individuals/Checked".

And after data processed output file saved on other location "/Shared/Data/Individuals/output".

Grokify
  • 15,092
  • 6
  • 60
  • 81
Imran Rafiq
  • 308
  • 2
  • 5
  • 15
  • You're writing Also [...] this file [..] This seems to assume, that one knows, ehich file you are talking of (?) – Clijsters May 30 '17 at 08:27
  • Please recheck it. Sorry I didn't understand your question. Can you please again ask me briefly your question. – Imran Rafiq May 30 '17 at 09:47

2 Answers2

1

It's an old post but here is how you would download/read files from a folder.

client = egnyte.EgnyteClient({"domain": "apidemo.egnyte.com",
"access_token": "OAuth token"})
file = client.file("/Shared/Data/Individuals/Input/abc.txt")
file_resource = file.download()
file_resource.read()
user6037143
  • 516
  • 5
  • 20
0

Egnyte have desktopconnect(2.0) version which I download on my system and after installation it will make egnyte drive on my pc and now I can easily access the egnyte files from my code just like other local files can read from code.

Imran Rafiq
  • 308
  • 2
  • 5
  • 15