How to detect Endianess and Filesystem with Python3
Question: I'm theorizing of a project where my python script looks at filesystem(s) on
the machine running the script but also reports back on the filesystem(s) of
devices that it mounts, thumb drives, mobile devices, etc.

Is anyone aware of the a BIF in python3 that would looks at endianness and
filesystem.

Finally, I want to make a loop that looks at what storage devices are mounted,
but I'm not sure how/whre to access that on OSX or Linux (fstab on linux?) and
see what is currently mounted and if that changes. If Fstab was the correct
file, would I constantly sort through it or should I just periodically open it
and compare it against a file object? I'm still very new at programming, so
please pardon any newbie oversights.

Thanks


Answer: For the endianness of the platform:

    
    
    >>> import sys
    >>> print(sys.byteorder)
    little
    

