473,385 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

More file details (id3, thumbnails, etc.)

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.

Oct 12 '05 #1
3 1393
Atila Olah wrote:
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
Oct 12 '05 #2
Atila Olah wrote:
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
Oct 12 '05 #3
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?

Oct 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: barney | last post by:
I'm trying to write to an existing file under windows XP (home). The files are in 'My Music' which I think may be treated in some special way under XP. The relevant python code is as follows: ...
0
by: anonymous | last post by:
the dotnet OpenFileDialog brings up a window that looks similar to a File Explorer window, and indeed depending on some user settings may list files in a details view, thumbnails view etc. Is...
4
by: supster | last post by:
I have the full file path of a file stored as a string and I'de like to get the file size in bytes. What is the most efficient way of doing this with a static method from the File class or...
6
by: Stan Cook | last post by:
I'm writing a script to list all of my music files' id3 tags to a comma delimited file. The only part I'm missing seems like it should be the simplest. I haven't used Python for the last couple...
1
by: mark2802 | last post by:
Im using the CommonDialog activeX control to select multiple file names. However I would like to be able to control using code the resulting view of the files as you can do in realtime using the view...
1
by: Psapg | last post by:
Hi! I'm new to javasript, and i must confess to have borowed a few free scripts from the net to satisfie my needs.... Still i can't find even an idea of ascipt to do this... Please Help!!! ...
7
by: SHC | last post by:
I'm in need of some javascript to load two pages into two seperate iframes which are on two seperate and different pages. Rather complicated I know (and easier done in one frameset), but caused...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.