get_file_timestamp

bidsaid.path_utils.get_file_timestamp(path)[source]

Get timestamp of file.

Important

Returns timestamp of file creation for Windows and modification timestamp for non-Windows systems (e.g., Linux, MAC, etc)

Info about date issue for Unix-based.

Parameter

pathstr or Path

Path to file.

Return

float

The file timestamp (creation time for Windows and modification time for non-Windows systems).