Topic
  • 2 replies
  • Latest Post - ‏2013-07-09T04:19:07Z by XB3V_Keshav_Chauhan
XB3V_Keshav_Chauhan
XB3V_Keshav_Chauhan
31 Posts

Pinned topic Getting Parent Folder

‏2013-06-27T06:01:19Z |

Greetings,

When a folder is clicked in the Folder , i want to get the ParentFolder of a Sub-folder.

Which function is to be used for that?

I have tried item.getParent() but not getting the result :

 

item.getParent()                     // error, getParent() is not a function             

 

Thanks & Regards,

Rajinder

  • BJOwings
    BJOwings
    185 Posts

    Re: Getting Parent Folder

    ‏2013-07-08T21:21:38Z  

    Although this is not documented, try item.parentFolder.  From looking through the code it seems to be what you are looking for.  

  • XB3V_Keshav_Chauhan
    XB3V_Keshav_Chauhan
    31 Posts

    Re: Getting Parent Folder

    ‏2013-07-09T04:19:07Z  
    • BJOwings
    • ‏2013-07-08T21:21:38Z

    Although this is not documented, try item.parentFolder.  From looking through the code it seems to be what you are looking for.  

    Thanks BJOwings,

    It worked by item.parent