summaryrefslogtreecommitdiff
path: root/osdep/OSUtils.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-04-14 15:32:05 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-04-14 15:32:05 -0700
commit347e98dcd2d29772d5b9cf23c307b0a6ce0d8858 (patch)
tree7c03cc6541b5b9d65ab3903a47d971d660f871dd /osdep/OSUtils.hpp
parent29a2175b7a7055ab851f5b921e26c51ffa547d07 (diff)
downloadinfinitytier-347e98dcd2d29772d5b9cf23c307b0a6ce0d8858.tar.gz
infinitytier-347e98dcd2d29772d5b9cf23c307b0a6ce0d8858.zip
Just return files from listDirectory() since that is all we need, fix network request on network restore logic, and remember saved networks in service/One
Diffstat (limited to 'osdep/OSUtils.hpp')
-rw-r--r--osdep/OSUtils.hpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/osdep/OSUtils.hpp b/osdep/OSUtils.hpp
index a0cb1067..142f0aed 100644
--- a/osdep/OSUtils.hpp
+++ b/osdep/OSUtils.hpp
@@ -103,16 +103,13 @@ public:
/**
* List a directory's contents
- *
- * Keys in returned map are filenames only and don't include the leading
- * path. Pseudo-paths like . and .. are not returned. Values are true if
- * the item is a directory, false if it's a file. More detailed attributes
- * aren't supported since the code that uses this doesn't need them.
+ *
+ * This returns only files, not sub-directories.
*
* @param path Path to list
- * @return Map of entries and whether or not they are also directories (empty on failure)
+ * @return Names of files in directory
*/
- static std::map<std::string,bool> listDirectory(const char *path);
+ static std::vector<std::string> listDirectory(const char *path);
/**
* Set modes on a file to something secure