Skip to content
Snippets Groups Projects
Commit 419a20fa authored by sveseli's avatar sveseli
Browse files

removed unneeded implementation class

parent 6fd85194
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python
#
# Implementation for file system controller.
#
#######################################################################
import threading
from dm.common.objects.dmObject import DmObject
from dm.common.objects.dmObjectManager import DmObjectManager
from dm.common.utility.dmSubprocess import DmSubprocess
#######################################################################
class FileSystemControllerImpl(DmObjectManager):
""" FS controller implementation class. """
def __init__(self):
DmObjectManager.__init__(self)
def getDirectoryList(self, path):
p = DmSubprocess('ls -l %s' % path)
p.run()
return DmObject({'path' : path, 'directoryList' : p.getStdOut()})
def writeFile(self, path, content):
f = open(path, 'w')
f.write('%s\n' % content)
f.close()
return DmObject({'path' : path})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment