fluentfs.common.s.is_empty

fluentfs.common.s.is_empty(s: str) bool

Checks if this string is empty, i.e. has length 0 or has only whitespace characters.

Note that the behaviour of this function is different from the built-in isspace(), since isspace() returns False for strings of length 0, which is undesirable in many situations.

Parameters:

s – The string.

Returns:

Whether the string is empty.