You Are Here:

Community: Developer Discussion Boards

#1 Old Number of files - 2008-04-02, 02:57

Join Date: Mar 2008
Posts: 57
DrivingMobileInnovation
Offline
Regular Contributor
How can I get the amount of files in a directory?
Reply With Quote

#2 Old Re: Number of files - 2008-04-02, 05:26

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia