@@ -16,23 +16,33 @@ class UiActionFileInfo(BaseModel):
1616 """File Information Nextcloud sends to the External Application."""
1717
1818 fileId : int
19+ """FileID without Nextcloud instance ID"""
1920 name : str
21+ """Name of the file/directory"""
2022 directory : str
23+ """Directory relative to the user's home directory"""
2124 etag : str
2225 mime : str
2326 fileType : str
27+ """**file** or **dir**"""
2428 size : int
29+ """size of file/directory"""
2530 favorite : str
31+ """**true** or **false**"""
2632 permissions : int
33+ """Combination of :py:class:`~nc_py_api.files.FilePermissions` values"""
2734 mtime : int
35+ """Last modified time"""
2836 userId : str
37+ """The ID of the user performing the action."""
2938 shared : str
39+ """**true** or **false**"""
3040
3141 def to_fs_node (self ) -> FsNode :
3242 """Returns created ``FsNode`` from the file info given.
3343
34- .. note:: :py:class: FsNode.file_id in this case is ``without`` **instance_id**
35- and equal to :py:class:FsNode.info. fileid.
44+ .. note:: :py:attr:`~nc_py_api.files. FsNode.file_id` in this case is ``without`` **instance_id**
45+ and equal to :py:attr:`~nc_py_api.files.FsNodeInfo. fileid` .
3646 """
3747 user_path = os .path .join (self .directory , self .name ).rstrip ("/" )
3848 is_dir = bool (self .fileType .lower () == "dir" )
@@ -68,12 +78,15 @@ class UiFileActionHandlerInfo(BaseModel):
6878 """Action information Nextcloud sends to the External Application."""
6979
7080 actionName : str
81+ """Name of the action, useful when App registers multiple actions for one handler."""
7182 actionHandler : str
83+ """Callback url, which was called with this information."""
7284 actionFile : UiActionFileInfo
85+ """Information about the file on which the action run."""
7386
7487
7588class _UiFilesActionsAPI :
76- """API for the drop-down menu in Nextcloud `` Files`` app."""
89+ """API for the drop-down menu in Nextcloud ** Files app** ."""
7790
7891 def __init__ (self , session : NcSessionApp ):
7992 self ._session = session
0 commit comments