More file details (id3, thumbnails, etc.)

A

Atila Olah

If it is not the right place to ask this, please tell me.

Otherwise, if someone could help me doing the following:
How to get all the details of the files that the OS gets when viewing
them in a folder? Both Windows and Linux solutions are welcome (well,
maybe it'd be better to start with an easier solution. I usually write
programs in Python and I've just read a few C and C++ tutorials. Also I
read how to extend Python with C/C++, so I'll try to make a Python
module with a File class, or something.) Or does anyone know where to
read more about this?
I don't want to use external or third-party modules, just let the OS
give me all the things I need.

Any ideas, links and code snippets are welcome.
 
V

Victor Bazarov

Atila said:
If it is not the right place to ask this, please tell me.

Otherwise, if someone could help me doing the following:
How to get all the details of the files that the OS gets when viewing
them in a folder? [...]

You need to ask in a newsgroup dedicated to that OS. Here OS-dependent
stuff is OT.

V
 
L

Larry I Smith

Atila said:
If it is not the right place to ask this, please tell me.

Otherwise, if someone could help me doing the following:
How to get all the details of the files that the OS gets when viewing
them in a folder? Both Windows and Linux solutions are welcome (well,
maybe it'd be better to start with an easier solution. I usually write
programs in Python and I've just read a few C and C++ tutorials. Also I
read how to extend Python with C/C++, so I'll try to make a Python
module with a File class, or something.) Or does anyone know where to
read more about this?
I don't want to use external or third-party modules, just let the OS
give me all the things I need.

Any ideas, links and code snippets are welcome.

Try 'stat()'.

On Linux execute 'man -S 2 stat' for details.

It's not ANSI Std, but it is POSIX Std, so it's available most
places (Windows, Unix, Linux, etc). It's called _stat() on
Windows.

Larry
 
A

Atila Olah

Thank you for your replies.
I've used os.stat() and os.fstat() in Python, it works on both Windows
and Linux. Now, the point is to use (I think) Windows or Linux API to
get even more file details (html thumbnails, id3, etc. - basically all
the things the OS recognizes.) And I'm not aware to implement this on
any OS, so if you could just tell me where is it the easiest to do -
Windows 9x/XP or Linux/UNIX?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top