diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llvfs/lldir.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/linden/indra/llvfs/lldir.h b/linden/indra/llvfs/lldir.h index dbddf7d..2626d19 100644 --- a/linden/indra/llvfs/lldir.h +++ b/linden/indra/llvfs/lldir.h | |||
@@ -64,12 +64,12 @@ class LLDir | |||
64 | 64 | ||
65 | virtual void initAppDirs(const std::string &app_name) = 0; | 65 | virtual void initAppDirs(const std::string &app_name) = 0; |
66 | public: | 66 | public: |
67 | virtual S32 deleteFilesInDir(const std::string &dirname, const std::string &mask); | 67 | virtual S32 deleteFilesInDir(const std::string &dirname, const std::string &mask); |
68 | 68 | ||
69 | // pure virtual functions | 69 | // pure virtual functions |
70 | virtual U32 countFilesInDir(const std::string &dirname, const std::string &mask) = 0; | 70 | virtual U32 countFilesInDir(const std::string &dirname, const std::string &mask) = 0; |
71 | virtual BOOL getNextFileInDir(const std::string &dirname, const std::string &mask, std::string &fname, BOOL wrap) = 0; | 71 | virtual BOOL getNextFileInDir(const std::string &dirname, const std::string &mask, std::string &fname, BOOL wrap) = 0; |
72 | virtual void getRandomFileInDir(const std::string &dirname, const std::string &mask, std::string &fname) = 0; | 72 | virtual void getRandomFileInDir(const std::string &dirname, const std::string &mask, std::string &fname) = 0; |
73 | virtual std::string getCurPath() = 0; | 73 | virtual std::string getCurPath() = 0; |
74 | virtual BOOL fileExists(const std::string &filename) const = 0; | 74 | virtual BOOL fileExists(const std::string &filename) const = 0; |
75 | 75 | ||
@@ -104,7 +104,7 @@ class LLDir | |||
104 | std::string getBaseFileName(const std::string& filepath, bool strip_exten = false) const; | 104 | std::string getBaseFileName(const std::string& filepath, bool strip_exten = false) const; |
105 | std::string getDirName(const std::string& filepath) const; | 105 | std::string getDirName(const std::string& filepath) const; |
106 | std::string getExtension(const std::string& filepath) const; // Excludes '.', e.g getExtension("foo.wav") == "wav" | 106 | std::string getExtension(const std::string& filepath) const; // Excludes '.', e.g getExtension("foo.wav") == "wav" |
107 | 107 | ||
108 | // these methods search the various skin paths for the specified file in the following order: | 108 | // these methods search the various skin paths for the specified file in the following order: |
109 | // getUserSkinDir(), getSkinDir(), getDefaultSkinDir() | 109 | // getUserSkinDir(), getSkinDir(), getDefaultSkinDir() |
110 | std::string findSkinnedFilename(const std::string &filename) const; | 110 | std::string findSkinnedFilename(const std::string &filename) const; |
@@ -114,6 +114,10 @@ class LLDir | |||
114 | // random filename in common temporary directory | 114 | // random filename in common temporary directory |
115 | std::string getTempFilename() const; | 115 | std::string getTempFilename() const; |
116 | 116 | ||
117 | // For producing safe download file names from potentially unsafe ones | ||
118 | static std::string getScrubbedFileName(const std::string uncleanFileName); | ||
119 | static std::string getForbiddenFileChars(); | ||
120 | |||
117 | virtual void setChatLogsDir(const std::string &path); // Set the chat logs dir to this user's dir | 121 | virtual void setChatLogsDir(const std::string &path); // Set the chat logs dir to this user's dir |
118 | virtual void setPerAccountChatLogsDir(const std::string &first, const std::string &last); // Set the per user chat log directory. | 122 | virtual void setPerAccountChatLogsDir(const std::string &first, const std::string &last); // Set the per user chat log directory. |
119 | virtual void setLindenUserDir(const std::string &first, const std::string &last); // Set the linden user dir to this user's dir | 123 | virtual void setLindenUserDir(const std::string &first, const std::string &last); // Set the linden user dir to this user's dir |