[Bug report] Get item by Path API retruns wrong item

  • 1
  • Problem
  • Updated 1 year ago
I have my folder structure like following

Shared folder
|
   |----111(folder)
|

Personal folder
|
I queried with Get Item by Path (path=/111), and then I got the /Shared Folders/111 item.
Photo of Tzuche

Tzuche

  • 2 Posts
  • 0 Reply Likes

Posted 1 year ago

  • 1
Photo of Eliezer Encarnacion

Eliezer Encarnacion, Official Rep

  • 732 Posts
  • 102 Reply Likes
Tzuche,

Shared folders are treated as the "root" folders of the account in terms of folder location, so both queries for path=/111 and path=Shared Folders/111 are expected to yield the same result.

Best,
Eli
Photo of Tzuche

Tzuche

  • 2 Posts
  • 0 Reply Likes
Hi Eli,
   If I create a "Personal Folders" in /Shared Folders.
   What folder (/Personal Folders or /Shared Folders/Personal Folders) should I get if I query with Get Item by Path (path=/Personal Folders)?

   Thank you.

Best regards,
Tzuche
Photo of Eliezer Encarnacion

Eliezer Encarnacion, Official Rep

  • 732 Posts
  • 102 Reply Likes
Tzuche,

That is an interesting edge case! In that case the user's home folder is returned. 
If there's any functionality you're trying to implement that is hindered by ShareFile's behavior do let me know and we can chat about ways to handle it.

Best,
Eli