{"comment":{"created_at":"2011-10-08T01:16:37Z","body":"Sample from messages with horacioj:\r\n\r\nsample:\r\nI have this in the container:\r\nfolder1\r\nfolder1/file1.gif\r\nfolder1/file2.gif\r\nfolder1/sub1\r\nfolder1/sub1/file3.fig\r\nfolder1/sub1/file4.fig\r\nfolder1/sub2\r\nfolder1/sub2/file5.fig\r\nfolder1/sub2/sub3\r\nfolder1/sub2/sub3/file6.gif\r\nfolder2\r\nfolder2/file7.gif\r\nfolder2/file8.gif\r\nfolder3\r\nfolder3/file9.fig\r\nfile1inroot.gif\r\nfile2inroot.gif\r\n\r\nQuerying for example the root (\"\") folder, with GetListParameters.Path = \"\" and/or Delimiter \"/\" and \r\nvar pathsList = connection.GetContainerItemList(Settings.ContainerName, parameters, true);\r\nor \r\nvar pathsList = connection.GetContainerItemList(Settings.ContainerName, parameters, false);\r\n\r\nDepending on the parameters, I get the list of folders and files:\r\nfolder1\r\nfolder2\r\nfolder3\r\nfile1inroot.gif\r\nfile2inroot.gif\r\nBut I could not get the list of folders only. The same happens for any folder (not just root).","updated_at":"2011-10-08T01:16:37Z","url":"https://api.github.com/repos/rackspace/csharp-cloudfiles/issues/comments/2329996","id":2329996,"user":{"avatar_url":"https://secure.gravatar.com/avatar/1c06ee86e4fff4d6b900a3dca834181b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/jmeridth","id":35014,"login":"jmeridth"}},"action":"created","issue":{"number":51,"created_at":"2011-08-16T23:49:12Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Hello,\r\n\r\n(1) \r\nI can list the files on a folder this way:\r\n```var parameters = new Dictionary<GetListParameters, string>();\r\nparameters.Add(GetListParameters.Path, \"folder1/\"); // get items from this specific path \r\nvar containerItemList = connection.GetContainerItemList(Settings.ContainerName, parameters);\r\n```\r\n\r\nHowever, this:\r\n```parameters.Add(GetListParameters.Path, \"/\");```\r\nor this:\r\n```parameters.Add(GetListParameters.Path, \"\");```\r\ndoes not work\r\nHow Can I query the files on the root folder?\r\n\r\n(2)\r\nThe code above returns the list of files in a folder. \r\nHow can I get the list of folders within a folder? I there any parameter I can set to get this list?\r\n\r\nAny hint will be highly appreciated.\r\nMany Thanks,\r\nHoracio.-","comments":7,"title":"How to list files on root 'folder', and how to list (sub)folders within a 'folder'?","updated_at":"2011-10-08T01:16:37Z","url":"https://api.github.com/repos/rackspace/csharp-cloudfiles/issues/51","id":1419516,"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/1c06ee86e4fff4d6b900a3dca834181b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/jmeridth","id":35014,"login":"jmeridth"},"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/44f2e3a8eb990703dddc8aae196e34e9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/horacioj","id":984821,"login":"horacioj"},"html_url":"https://github.com/rackspace/csharp-cloudfiles/issues/51","labels":[],"state":"open"},"legacy":{"issue_id":1419516,"comment_id":2329996}}