Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 362 Bytes
#!/usr/bin/python
import os
from dFile import dFile
from dFolder import dFolder
class dDrive(dFolder):
def initData(self):
bin = dFolder('bin', self)
for i in os.listdir('dBins'):
bin.addFile(dFile(i[:-3], open('dBins/'+i).read(), bin))
self.addFolder(bin)
self.addFolder(dFolder('etc', self))
self.addFolder(dFolder('var', self))
return self