Skip to content

File

Bases: Entity

A File object present on a host.

Attributes:

Name Type Description
create_time str
default_permissions int
density int
file_type str
group str
group_permissions int
last_access_time str
last_modified_time str
name str
path str
signed bool
user User
user_permissions int
vendor str
version str

Functions

check_executable

check_executable(user: User)

Checks if the file is executable by a given user - assumes the user and file are on the same dict.

check_readable

check_readable(user: User)

Checks readability of file.

get_state

get_state()

Returns a dictionary that represents the file.