python

December 3, 2016 | Author: Ghimire | Category: N/A
Share Embed Donate


Short Description

Primary difference in between glob.glob and os.walk in python...

Description

Difference between glob.glob and os.walk is that glob.glob only lists .htm files (or snips) from the folder that is specified. snips=glob.glob(r'C:\Users\Guest\Desktop\sudi_work\New_folder\*.htm') this only shows the files in newfolder.if new folder consists of other sub folde r than it does not show any result thus for this purpose os.walk is used as to see path of those snips that are wit hin various sub directories..sub-sub-directories...sub-sub-sub-directories

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF