Assuming you are using ntfs-3g to mount NTFS partitions on Linux (this is the default for most current Linux distributions).
You will need to read the extended file attributes (see attr (5) ), you can use pyxattr for this. NTFS attributes are stored in the system.ntfs_attrib
extended attribute as a set of flags whose values ββare documented in the ntfs-3g documentation .
Here is a sample code for reading and decoding NTFS file system attributes and using them to filter files:
import os, struct, xattr # values from http:
source share