Categories: Python | How To | Code Examples | S60
This page was last modified 16:48, 17 April 2008.
How to handle file metadata
From Forum Nokia Wiki
This article shows how to display file metadata such as size, date modified etc. in PyS60.
import os file_path="C:\\Python\\ball.py" #In order to read the data, we use the stat function print os.stat(file_path) #Returns a tuple such as: (33206, 0L, 0, 0, 0, 0, 4016L, 1208449711, 1200903472, 1208449711) #Where the elements are: #st_mode (protection bits) #st_ino (inode number) #st_dev (device) #st_nlink (number of hard links) #st_uid (user ID of owner) #st_gid (group ID of owner) #st_size (size of file, in bytes) #st_atime (time of most recent access) #st_mtime (time of most recent content modification) #st_ctime (time of creation)
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Get disconnect Button event | anoopd | General Symbian C++ | 10 | 2007-06-14 14:11 |
| Help:CleanupStack in Symbian | SymbianLN | General Symbian C++ | 5 | 2006-04-04 01:20 |
| How to remove this memory leak from TRAPD | ranjeet raj | General Symbian C++ | 17 | 2008-07-03 07:51 |
| where to add the recognizer? or can i standalone? | ipis | General Symbian C++ | 5 | 2005-10-24 11:31 |
| URL or Link in MMS | hypnex2000 | General Messaging | 2 | 2005-04-29 17:08 |
