Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dm-docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hammonds
dm-docs
Commits
419a20fa
Commit
419a20fa
authored
9 years ago
by
sveseli
Browse files
Options
Downloads
Patches
Plain Diff
removed unneeded implementation class
parent
6fd85194
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/python/dm/ds_web_service/service/impl/fileSystemControllerImpl.py
+0
-32
0 additions, 32 deletions
...m/ds_web_service/service/impl/fileSystemControllerImpl.py
with
0 additions
and
32 deletions
src/python/dm/ds_web_service/service/impl/fileSystemControllerImpl.py
deleted
100755 → 0
+
0
−
32
View file @
6fd85194
#!/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
})
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment