Lines Matching defs:sourcePath

199 copy_attributes(const char *sourcePath, BNode &source, const char *destPath,
209 "of file \"%s\": %s\n", attrName, sourcePath, strerror(error));
233 "of file \"%s\": %s\n", attrName, sourcePath,
258 copy_file_data(const char *sourcePath, BFile &source, const char *destPath,
268 sourcePath, strerror(bytesRead));
290 copy_entry(const char *sourcePath, const char *destPath,
294 if (!parameters.entry_filter.Filter(sourcePath))
299 if (lstat(sourcePath, &sourceStat) < 0) {
300 fprintf(stderr, "Error: Couldn't access \"%s\": %s\n", sourcePath,
331 "\"%s\" is in the way.\n", sourcePath, destPath);
354 error = sourceDir.SetTo(sourcePath);
357 error = sourceFile.SetTo(sourcePath, B_READ_ONLY);
360 error = _sourceNode.SetTo(sourcePath);
366 sourcePath, strerror(error));
401 copy_file_data(sourcePath, sourceFile, destPath, destFile,
407 ssize_t bytesRead = readlink(sourcePath, linkTo,
411 sourcePath, strerror(errno));
430 sourcePath);
435 copy_attributes(sourcePath, *sourceNode, destPath, *destNode,
459 copy_attributes(sourcePath, *sourceNode, destPath, *destNode,
478 error = sourceEntryPath.SetTo(sourcePath, entry->d_name);
482 sourcePath, entry->d_name, strerror(error));
504 if (rmdir(sourcePath) < 0) {
506 sourcePath, strerror(errno));
511 if (unlink(sourcePath) < 0) {
513 sourcePath, strerror(errno));
571 const char *sourcePath = sourcePaths[i];
579 int sourceLen = strlen(sourcePath);
580 while (sourceLen > 1 && sourcePath[sourceLen - 1] == '/')
585 while (leafStart > 0 && sourcePath[leafStart - 1] != '/')
592 && strncmp(sourcePath + leafStart, "..", leafLen) == 0)) {
601 error = normalizedSourcePath.SetTo(sourcePath);
603 fprintf(stderr, "Error: Invalid path \"%s\".\n", sourcePath);
612 sourcePath, destPath);
619 copy_entry(sourcePath, destPath, parameters);