Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages

Get file or file system status. More...

Classes

class  XBMCAddon::xbmcvfs::Stat
 

Functions

 XBMCAddon::xbmcvfs::Stat::st_mode ()
 

Function: st_mode()


To get file protection.
 
 XBMCAddon::xbmcvfs::Stat::st_ino ()
 

Function: st_ino()


To get inode number.
 
 XBMCAddon::xbmcvfs::Stat::st_dev ()
 

Function: st_dev()


To get ID of device containing file.
 
 XBMCAddon::xbmcvfs::Stat::st_nlink ()
 

Function: st_nlink()


To get number of hard links.
 
 XBMCAddon::xbmcvfs::Stat::st_uid ()
 

Function: st_uid()


To get user ID of owner.
 
 XBMCAddon::xbmcvfs::Stat::st_gid ()
 

Function: st_gid()


To get group ID of owner.
 
 XBMCAddon::xbmcvfs::Stat::st_size ()
 

Function: st_size()


To get total size, in bytes.
 
 XBMCAddon::xbmcvfs::Stat::st_atime ()
 

Function: st_atime()


To get time of last access.
 
 XBMCAddon::xbmcvfs::Stat::st_mtime ()
 

Function: st_mtime()


To get time of last modification.
 
 XBMCAddon::xbmcvfs::Stat::st_ctime ()
 

Function: st_ctime()


To get time of last status change.
 

Detailed Description

Get file or file system status.

Class: xbmcvfs.Stat(path)

These class return information about a file. Execute (search) permission is required on all of the directories in path that lead to the file.

Parameters
path[string] file or folder

v12 Python API changes
New function added

Example:

..
st = xbmcvfs.Stat(path)
modified = st.st_mtime()
..

Function Documentation

◆ st_atime()

XBMCAddon::xbmcvfs::Stat::st_atime ( )

Function: st_atime()


To get time of last access.

Returns
st_atime

◆ st_ctime()

XBMCAddon::xbmcvfs::Stat::st_ctime ( )

Function: st_ctime()


To get time of last status change.

Returns
st_ctime

◆ st_dev()

XBMCAddon::xbmcvfs::Stat::st_dev ( )

Function: st_dev()


To get ID of device containing file.

The st_dev field describes the device on which this file resides.

Returns
st_dev

◆ st_gid()

XBMCAddon::xbmcvfs::Stat::st_gid ( )

Function: st_gid()


To get group ID of owner.

Returns
st_gid

◆ st_ino()

XBMCAddon::xbmcvfs::Stat::st_ino ( )

Function: st_ino()


To get inode number.

Returns
st_ino

◆ st_mode()

XBMCAddon::xbmcvfs::Stat::st_mode ( )

Function: st_mode()


To get file protection.

Returns
st_mode

◆ st_mtime()

XBMCAddon::xbmcvfs::Stat::st_mtime ( )

Function: st_mtime()


To get time of last modification.

Returns
st_mtime

◆ st_nlink()

XBMCAddon::xbmcvfs::Stat::st_nlink ( )

Function: st_nlink()


To get number of hard links.

Returns
st_nlink

◆ st_size()

XBMCAddon::xbmcvfs::Stat::st_size ( )

Function: st_size()


To get total size, in bytes.

The st_size field gives the size of the file (if it is a regular file or a symbolic link) in bytes. The size of a symbolic link (only on Linux and Mac OS X) is the length of the pathname it contains, without a terminating null byte.

Returns
st_size

◆ st_uid()

XBMCAddon::xbmcvfs::Stat::st_uid ( )

Function: st_uid()


To get user ID of owner.

Returns
st_uid