Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
24b3d541
authored
Feb 08, 2013
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cloudgui: remove hard coded folder names
parent
fe24d2fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
miscellaneous/laborclient/cloudgui/gui.py
+4
-4
No files found.
miscellaneous/laborclient/cloudgui/gui.py
View file @
24b3d541
...
...
@@ -128,18 +128,18 @@ class Browser:
except
:
False
def
mount_sshfs_folder
(
self
):
user
=
getpass
.
getuser
()
self
.
folder
=
getpass
.
gethome
()
+
"/sshfs"
neptun
=
self
.
params
[
"neptun"
]
host
=
self
.
params
[
"host"
]
try
:
os
.
makedirs
(
"/home/"
+
user
+
"/sshfs"
,
0644
)
os
.
makedirs
(
folder
,
0644
)
except
:
pass
result
=
subprocess
.
call
([
'/usr/bin/sshfs'
,
'-o'
,
'IdentityFile='
+
self
.
private_key_file
,
neptun
+
"@"
+
host
+
":home"
,
"/home/"
+
user
+
"/sshfs"
])
result
=
subprocess
.
call
([
'/usr/bin/sshfs'
,
'-o'
,
'IdentityFile='
+
self
.
private_key_file
,
neptun
+
"@"
+
host
+
":home"
,
folder
])
#print result
def
umount_sshfs_folder
(
self
):
try
:
result
=
subprocess
.
call
([
'/bin/fusermount'
,
'-u'
,
"/home/tarokkk/sshfs"
])
result
=
subprocess
.
call
([
'/bin/fusermount'
,
'-u'
,
self
.
folder
])
except
:
pass
def
post_key
(
self
,
key
=
None
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment