From dcf776cfb8f0e8f4d04566bdf8e5a85539f6aa49 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 27 Jan 2020 20:42:21 -0800 Subject: [PATCH] Updated Directories and Files (markdown) --- Directories-and-Files.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Directories-and-Files.md b/Directories-and-Files.md index 7a71029..f0b6def 100644 --- a/Directories-and-Files.md +++ b/Directories-and-Files.md @@ -36,11 +36,11 @@ curl "http://localhost:8888/path/to/sources/README.md" curl -F "filename=@Makefile" "http://localhost:8888/path/to/sources/new_name" curl "http://localhost:8888/path/to/sources/new_name" -# list sub folders and files, use browser to visit this url: "http://localhost:8888/path/to/sources/" +# list sub folders and files, use browser to visit this url: "http://localhost:8888/path/to/" # To list the results in JSON: -curl -H "Accept: application/json" "http://localhost:8888/path/to/sources/new_name" +curl -H "Accept: application/json" "http://localhost:8888/path/to" # To list the results in pretty JSON -curl -H "Accept: application/json" "http://localhost:8888/path/to/sources/new_name?pretty=y" +curl -H "Accept: application/json" "http://localhost:8888/path/to?pretty=y" # The directory list limit is default to 100 # if lots of files under this folder, here is a way to efficiently paginate through all of them