1

I am currently trying to write a script to find out, whether a file in a "company cloud" is available locally or not. I tried path.isfile(). The problem is: The files which are not available locally can still be accessed by path.isfile(). Then, the server automatically initiates a download of the file to make it available locally. For my application, this is unwanted behaviour. So my next idea is the following: I searched for file properties which makes locally available files and "cloud" files distinguishable. I seem to have found such a property: The following pictures show the attributes O or N. How can I access these attributes in my python script? File1 File2

Alex
  • 21
  • 5

1 Answers1

0

This question might be a useful place to look. The answers use the pyWin32 module which you can install with pip install pywin32. Some of the answers use the win32api module which is what pyWin32 used to be called.

nxe
  • 241
  • 2
  • 9
  • If I understand it correctly, the mentioned question is limited to file versions. I can't really deduce a solution for finding my necessary attributes from this thread. – Alex May 28 '21 at 08:25