Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
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
Commit
6dc311ef
authored
Jan 28, 2013
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added dictionary based list parameters
parent
3cbf153f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
miscellaneous/store-server/CloudStore.py
+3
-2
No files found.
miscellaneous/store-server/CloudStore.py
View file @
6dc311ef
...
...
@@ -10,7 +10,7 @@ from pwd import getpwnam
ROOT_WWW_FOLDER
=
'/var/www'
ROOT_BIN_FOLDER
=
'/opt/store-server'
SITE_URL
=
'http
s://store.cloud.ik.bme.hu
'
SITE_URL
=
'http
://store.cloud.ik.bme.hu:8080
'
USER_MANAGER
=
'UserManager.sh'
@route
(
'/'
)
...
...
@@ -270,7 +270,8 @@ def list_directory(home,path):
is_dir
=
'D'
else
:
is_dir
=
'F'
tuplelist
.
append
((
item
,
is_dir
,
os
.
path
.
getsize
(
static_route
)
/
1024
,
os
.
path
.
getmtime
(
static_route
)
))
element
=
{
'NAME'
:
item
,
'TYPE'
:
is_dir
,
'SIZE'
:
os
.
path
.
getsize
(
static_route
)
/
1024
,
'MTIME'
:
os
.
path
.
getmtime
(
static_route
)
}
tuplelist
.
append
(
element
)
return
json
.
dumps
(
tuplelist
)
def
getQuotaStatus
(
neptun
):
...
...
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