import os, time 
import fnmatch
import pickle

startDir = "fortune1" ;
fileList = [] ;
#print("starting");
def traverse(start_dir) :
	for dirPath, dirs, files in os.walk(start_dir):
		for singleFile in files:
			if fnmatch.fnmatch(singleFile, "*txt") or fnmatch.fnmatch(singleFile, "*log"):
				absPath = os.path.join(dirPath, singleFile) ;
				of = open(absPath) ;
				f = of.read() ;
				of.close() ;
				mDate = time.ctime(os.path.getmtime(absPath)) ;
				size = os.path.getsize(absPath);
				fileList.append((absPath,f,mDate,size)) ;
		print(fileList) ;
	rawData = open("raw_data.pickle", "wb") ;
	pickle.dump(fileList, rawData) ;
	rawData.close() ;
	
traverse(startDir);

82c74b4bd5942fd65ea8b1a5b74e655406c1cfc6
<mask token>


def traverse(start_dir):
    for dirPath, dirs, files in os.walk(start_dir):
        for singleFile in files:
            if fnmatch.fnmatch(singleFile, '*txt') or fnmatch.fnmatch(
                singleFile, '*log'):
                absPath = os.path.join(dirPath, singleFile)
                of = open(absPath)
                f = of.read()
                of.close()
                mDate = time.ctime(os.path.getmtime(absPath))
                size = os.path.getsize(absPath)
                fileList.append((absPath, f, mDate, size))
        print(fileList)
    rawData = open('raw_data.pickle', 'wb')
    pickle.dump(fileList, rawData)
    rawData.close()


<mask token>

<mask token>


def traverse(start_dir):
    for dirPath, dirs, files in os.walk(start_dir):
        for singleFile in files:
            if fnmatch.fnmatch(singleFile, '*txt') or fnmatch.fnmatch(
                singleFile, '*log'):
                absPath = os.path.join(dirPath, singleFile)
                of = open(absPath)
                f = of.read()
                of.close()
                mDate = time.ctime(os.path.getmtime(absPath))
                size = os.path.getsize(absPath)
                fileList.append((absPath, f, mDate, size))
        print(fileList)
    rawData = open('raw_data.pickle', 'wb')
    pickle.dump(fileList, rawData)
    rawData.close()


traverse(startDir)

<mask token>
startDir = 'fortune1'
fileList = []


def traverse(start_dir):
    for dirPath, dirs, files in os.walk(start_dir):
        for singleFile in files:
            if fnmatch.fnmatch(singleFile, '*txt') or fnmatch.fnmatch(
                singleFile, '*log'):
                absPath = os.path.join(dirPath, singleFile)
                of = open(absPath)
                f = of.read()
                of.close()
                mDate = time.ctime(os.path.getmtime(absPath))
                size = os.path.getsize(absPath)
                fileList.append((absPath, f, mDate, size))
        print(fileList)
    rawData = open('raw_data.pickle', 'wb')
    pickle.dump(fileList, rawData)
    rawData.close()


traverse(startDir)

import os, time
import fnmatch
import pickle
startDir = 'fortune1'
fileList = []


def traverse(start_dir):
    for dirPath, dirs, files in os.walk(start_dir):
        for singleFile in files:
            if fnmatch.fnmatch(singleFile, '*txt') or fnmatch.fnmatch(
                singleFile, '*log'):
                absPath = os.path.join(dirPath, singleFile)
                of = open(absPath)
                f = of.read()
                of.close()
                mDate = time.ctime(os.path.getmtime(absPath))
                size = os.path.getsize(absPath)
                fileList.append((absPath, f, mDate, size))
        print(fileList)
    rawData = open('raw_data.pickle', 'wb')
    pickle.dump(fileList, rawData)
    rawData.close()


traverse(startDir)

import os, time 
import fnmatch
import pickle

startDir = "fortune1" ;
fileList = [] ;
#print("starting");
def traverse(start_dir) :
	for dirPath, dirs, files in os.walk(start_dir):
		for singleFile in files:
			if fnmatch.fnmatch(singleFile, "*txt") or fnmatch.fnmatch(singleFile, "*log"):
				absPath = os.path.join(dirPath, singleFile) ;
				of = open(absPath) ;
				f = of.read() ;
				of.close() ;
				mDate = time.ctime(os.path.getmtime(absPath)) ;
				size = os.path.getsize(absPath);
				fileList.append((absPath,f,mDate,size)) ;
		print(fileList) ;
	rawData = open("raw_data.pickle", "wb") ;
	pickle.dump(fileList, rawData) ;
	rawData.close() ;
	
traverse(startDir);
