| Reply | « Previous Thread | Next Thread » |
|
How can I get the amount of files in a directory?
|
| DrivingMobileInnovation |
| View Public Profile |
| Find all posts by DrivingMobileInnovation |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Online
Forum Nokia Champion
|
|
Adapted from: http://wiki.forum.nokia.com/index.ph...nd_directories
Code:
import os i=0 folder="C:\\Python" for f in os.listdir(folder): i+=1 print i #i is the number of files
Last edited by bogdan.galiceanu : 2008-04-02 at 06:07.
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| linking error | dakosurf | General Symbian C++ | 1 | 2008-03-27 23:45 |
| Counting the number of files in a particular folder | MananW | Mobile Java Tools & SDKs | 4 | 2006-04-20 17:41 |
| SOLUTION :: SENDING FILES OVER BT on KEYPRESS | prasad_koli | Symbian Networking & Messaging | 0 | 2006-01-08 12:46 |
| encoding message centre number | udy1971 | General Messaging | 3 | 2002-10-24 08:38 |
| Unicode Song Title In NSM Ringtone | mcai7db3 | Smart Messaging | 3 | 2002-08-28 07:58 |