Shard
Shard

Reputation: 3235

Handling file attributes in python 3.0

I am currently developing an application in python 3 and i need to be able to hide certain files from the view of people. i found a few places that used the win32api and win32con but they don't seem to exist in python 3.

Does anyone know if this is possible without rolling back or writing my own attribute library in C++

Upvotes: 1

Views: 591

Answers (2)

vartec
vartec

Reputation: 134601

You can use ctypes to directly access functions from kernel32.dll.

The function you're looking for is windll.kernel32.SetFileAttributesA

Upvotes: 3

theller
theller

Reputation: 2879

You need the pywin32 Python Extensions for Windows. Recently released for Python 3.

Upvotes: 5

Related Questions