From 419a20fa5732f4277a7d9f919bf69e249c43b8e1 Mon Sep 17 00:00:00 2001 From: Sinisa Veseli <sveseli@aps.anl.gov> Date: Mon, 13 Apr 2015 14:10:33 +0000 Subject: [PATCH] removed unneeded implementation class --- .../service/impl/fileSystemControllerImpl.py | 32 ------------------- 1 file changed, 32 deletions(-) delete mode 100755 src/python/dm/ds_web_service/service/impl/fileSystemControllerImpl.py diff --git a/src/python/dm/ds_web_service/service/impl/fileSystemControllerImpl.py b/src/python/dm/ds_web_service/service/impl/fileSystemControllerImpl.py deleted file mode 100755 index b3e27a94..00000000 --- a/src/python/dm/ds_web_service/service/impl/fileSystemControllerImpl.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/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}) -- GitLab