Lines Matching defs:tmpDirPath
58 char tmpDirPath[tmpDirPathBufSize];
61 tmpDirPath);
62 if (FileUtils::existsDir(tmpDirPath)) {
63 if (!FileUtils::removeDirAndFiles(tmpDirPath)) {
64 AKLOGE("Existing directory %s cannot be removed.", tmpDirPath);
70 if (mkdir(tmpDirPath, S_IRWXU) == -1) {
71 AKLOGE("Cannot create directory: %s. errno: %d.", tmpDirPath, errno);
78 const int dictPathBufSize = FileUtils::getFilePathBufSize(tmpDirPath, dictName);
80 FileUtils::getFilePath(tmpDirPath, dictName, dictPathBufSize, dictPath);
85 AKLOGE("Dictionary header file %s%s cannot be written.", tmpDirPath,
92 AKLOGE("Dictionary trie file %s%s cannot be written.", tmpDirPath,
98 AKLOGE("Terminal position lookup table cannot be written. %s", tmpDirPath);
102 AKLOGE("Probability dict content cannot be written. %s", tmpDirPath);
106 AKLOGE("Bigram dict content cannot be written. %s", tmpDirPath);
110 AKLOGE("Shortcut dict content cannot be written. %s", tmpDirPath);
120 if (rename(tmpDirPath, dictDirPath) != 0) {
121 AKLOGE("%s cannot be renamed to %s", tmpDirPath, dictDirPath);