module filehelper.format_helper

Short summary

module pyensae.filehelper.format_helper

Various functions to display information about files

source on GitHub

Functions

function

truncated documentation

format_file_mtime

Returns a :epkg:`datetime` for a file.

format_file_size

Formats the file size as string.

Documentation

Various functions to display information about files

source on GitHub

pyensae.filehelper.format_helper.format_file_mtime(timestamp)

Returns a :epkg:`datetime` for a file.

Parameters:

timestamp – modified date for example

Returns:

datetime

source on GitHub

pyensae.filehelper.format_helper.format_file_size(size)

Formats the file size as string.

Parameters:

size – numeric value

Returns:

string (something + unit)

source on GitHub