this function will return NULL if input srcFileName is not valid name for mirrored output path */
| 808 | |
| 809 | /* this function will return NULL if input srcFileName is not valid name for mirrored output path */ |
| 810 | char* UTIL_createMirroredDestDirName(const char* srcFileName, const char* outDirRootName) |
| 811 | { |
| 812 | char* pathname = NULL; |
| 813 | if (!isFileNameValidForMirroredOutput(srcFileName)) |
| 814 | return NULL; |
| 815 | |
| 816 | pathname = mallocAndJoin2Dir(outDirRootName, trimPath(srcFileName)); |
| 817 | |
| 818 | convertPathnameToDirName(pathname); |
| 819 | return pathname; |
| 820 | } |
| 821 | |
| 822 | static int |
| 823 | mirrorSrcDir(char* srcDirName, const char* outDirName) |
no test coverage detected