Kodi Development  20.0
for Binary and Script based Add-Ons

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_mode()

st_mode ( )

Function: st_mode()


To get file protection.

Returns
st_mode

◆ st_ino()

st_ino ( )

Function: st_ino()


To get inode number.

Returns
st_ino

◆ st_dev()

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_nlink()

st_nlink ( )

Function: st_nlink()


To get number of hard links.

Returns
st_nlink

◆ st_uid()

st_uid ( )

Function: st_uid()


To get user ID of owner.

Returns
st_uid

◆ st_gid()

st_gid ( )

Function: st_gid()


To get group ID of owner.

Returns
st_gid

◆ st_size()

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_atime()

st_atime ( )

Function: st_atime()


To get time of last access.

Returns
st_atime

◆ st_mtime()

st_mtime ( )

Function: st_mtime()


To get time of last modification.

Returns
st_mtime

◆ st_ctime()

st_ctime ( )

Function: st_ctime()


To get time of last status change.

Returns
st_ctime