os.listdir()
is giving me list of the current folder's files.
But I also get, in addition to the ordinary files, this:
.zenmap DIR
Anaconda2 DIR
AndroidStudioProjects DIR
AppData DIR
Contacts DIR
Desktop DIR
Documents DIR
Downloads DIR
Favorites DIR
IntelGraphicsProfiles DIR
Links DIR
Music DIR
NTUSER FILE 6815744 Bytes
ntuser.dat FILE 327680 Bytes
ntuser.dat FILE 1744896 Bytes
NTUSER.DAT{9d027246-75b9-11e6-86ab-da51f06118f7}.TxR.0 FILE 1048576 Bytes
NTUSER.DAT{9d027246-75b9-11e6-86ab-da51f06118f7}.TxR.1 FILE 1048576 Bytes
NTUSER.DAT{9d027246-75b9-11e6-86ab-da51f06118f7}.TxR.2 FILE 1048576 Bytes
NTUSER.DAT{9d027246-75b9-11e6-86ab-da51f06118f7}.TxR FILE 65536 Bytes
NTUSER.DAT{9d027247-75b9-11e6-86ab-da51f06118f7}.TM FILE 65536 Bytes
NTUSER.DAT{9d027247-75b9-11e6-86ab-da51f06118f7}.TMContainer00000000000000000001 FILE 524288 Bytes
NTUSER.DAT{9d027247-75b9-11e6-86ab-da51f06118f7}.TMContainer00000000000000000002 FILE 524288 Bytes
NTUSER.DAT{dd612578-7782-11e6-b4b2-b01041a7b403}.TxR.0 FILE 1048576 Bytes
NTUSER.DAT{dd612578-7782-11e6-b4b2-b01041a7b403}.TxR.1 FILE 1048576 Bytes
NTUSER.DAT{dd612578-7782-11e6-b4b2-b01041a7b403}.TxR.2 FILE 1048576 Bytes
NTUSER.DAT{dd612578-7782-11e6-b4b2-b01041a7b403}.TxR FILE 65536 Bytes
NTUSER.DAT{dd612579-7782-11e6-b4b2-b01041a7b403}.TM FILE 65536 Bytes
NTUSER.DAT{dd612579-7782-11e6-b4b2-b01041a7b403}.TMContainer00000000000000000001 FILE 524288 Bytes
NTUSER.DAT{dd612579-7782-11e6-b4b2-b01041a7b403}.TMContainer00000000000000000002 FILE 524288 Bytes
ntuser FILE 20 Bytes
OneDrive DIR
Pictures DIR
PycharmProjects DIR
As you can see, I have some folders and files, and also weird files that don't really exist in the folder (they exist, but are invisible).
How can I show only the regular files?
(I tried to use stat.S_ISREG
already, and the rusults wasn't what I need.)
EDIT:
For example, this file:
NTUSER.DAT{dd612579-7782-11e6-b4b2-b01041a7b403}.TMContainer00000000000000000002
When I'm trying to search for that in my computer - it's like it doesn't exist, there is no match for that file name. (also the 'ntuser.dat' etc...)