Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
  • Loading branch information
bjjansure committed Oct 9, 2019
1 parent f2e0740 commit b1bdfb7
Show file tree
Hide file tree
Showing 24 changed files with 15 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed __MACOSX/._lua-5
Binary file not shown.
Binary file removed __MACOSX/lua-5/._.DS_Store
Binary file not shown.
Binary file removed __MACOSX/lua-5/._include
Binary file not shown.
Binary file removed __MACOSX/lua-5/._lua5.1.dll
Binary file not shown.
Binary file removed __MACOSX/lua-5/._lua5.1.lib
Binary file not shown.
Binary file removed __MACOSX/lua-5/._lua51.dll
Binary file not shown.
Binary file removed __MACOSX/lua-5/._lua51.lib
Binary file not shown.
Binary file removed __MACOSX/lua-5/include/._lauxlib.h
Binary file not shown.
Binary file removed __MACOSX/lua-5/include/._lua.h
Binary file not shown.
Binary file removed __MACOSX/lua-5/include/._lua.hpp
Binary file not shown.
Binary file removed __MACOSX/lua-5/include/._luaconf.h
Binary file not shown.
Binary file removed __MACOSX/lua-5/include/._lualib.h
Binary file not shown.
13 changes: 9 additions & 4 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ func (c *Command) GetPathParam(s string) string {
return strings.Trim(c.Params[s], "/")
}

func (c *Command) GetChildPathParam(s string) string {
return strings.Trim(c.Params[s], "/") + "/"
func (c *Command) GetChildPathParam() string {
return strings.Trim(c.Params["childDirName"], "/") + "/"
}


Expand Down Expand Up @@ -92,16 +92,21 @@ func list_files(c *Command) int {
c.status = 1
return 1
}
if len(c.GetChildPathParam()) == 0 {
c.Stderr = "Params childDirName is empty"
c.status = 1
return 1
}
var aout DirFiles
for _, dir := range dirs {
d := c.GetPath() + dir
d := c.GetPath() + dir + c.GetChildPathParam()
files, err := ioutil.ReadDir(d)
if err != nil {
c.Stderr = err.Error()
c.status = 1
return 1
}
f, err := os.Stat(d)
f, err := os.Stat(c.GetPath() + dir )
if err != nil {
c.Stderr = err.Error()
c.status = 1
Expand Down
Binary file removed file_server-master
Binary file not shown.
Empty file modified lua-5/include/lauxlib.h
100644 → 100755
Empty file.
Empty file modified lua-5/include/lua.h
100644 → 100755
Empty file.
Empty file modified lua-5/include/lua.hpp
100644 → 100755
Empty file.
Empty file modified lua-5/include/luaconf.h
100644 → 100755
Empty file.
Empty file modified lua-5/include/lualib.h
100644 → 100755
Empty file.
Empty file modified lua-5/lua5.1.dll
100644 → 100755
Empty file.
Empty file modified lua-5/lua5.1.lib
100644 → 100755
Empty file.
Empty file modified lua-5/lua51.dll
100644 → 100755
Empty file.
Empty file modified lua-5/lua51.lib
100644 → 100755
Empty file.

0 comments on commit b1bdfb7

Please sign in to comment.