diff options
| author | hallgren <hallgren@chalmers.se> | 2012-06-12 15:36:41 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2012-06-12 15:36:41 +0000 |
| commit | cc58e2d05f75710f018efd5e026686146e9b4b9d (patch) | |
| tree | 349e8de32361f4ce29e9bce403755a5210bd51fb /src/compiler/GFServer.hs | |
| parent | 3af1dbde67678f8b1e98886e7bd84adb440f9dfd (diff) | |
translator: documents can now be saved in the cloud
some other small fixes
Diffstat (limited to 'src/compiler/GFServer.hs')
| -rw-r--r-- | src/compiler/GFServer.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/GFServer.hs b/src/compiler/GFServer.hs index ee7b7326f..5b3c0d58f 100644 --- a/src/compiler/GFServer.hs +++ b/src/compiler/GFServer.hs @@ -165,7 +165,7 @@ handle state0 cache execute1 case cmd of "make" -> make dir qs "upload" -> upload qs - "ls" -> jsonList + "ls" -> jsonList (maybe ".json" id $ lookup "ext" qs) "rm" -> look "file" rm qs "download" -> look "file" download qs "link_directories" -> look "newdir" (link_directories dir) qs @@ -183,8 +183,8 @@ handle state0 cache execute1 do mapM_ (uncurry updateFile) files return (state,resp204) - jsonList = - do jsons <- ls_ext "." ".json" + jsonList ext = + do jsons <- ls_ext "." ext return (state,json200 jsons) rm path _ | takeExtension path==".json" = |
