get_file_creation_date

bidsaid.path_utils.get_file_creation_date(path, date_fmt)[source]

Get creation date of a file

Important

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

Info about date issue for Unix-based systems.

Parameters

pathstr or Path

Path to file.

date_fmtstr

The desired output format of the date.

Returns

str

File creation date for Windows and modification date for non-Windows systems.