Lines Matching refs:file

436 	// package file system.
457 // use the modification time of the old activations file, if possible
527 // write the old activation file
648 ERROR("Failed to compare new package %s to existing file in "
833 for (int32 i = 0; const BGlobalWritableFileInfo* file = files.ItemAt(i);
835 if (file->IsIncluded() && !contentPaths.Add(file->Path()))
877 for (int32 i = 0; const BGlobalWritableFileInfo* file = files.ItemAt(i);
879 if (file->IsIncluded()) {
880 _AddGlobalWritableFile(package, *file, rootDirectory,
889 const BGlobalWritableFileInfo& file, const BDirectory& rootDirectory,
893 const char* lastSlash = strrchr(file.Path(), '/');
898 BString sourceParentPath(file.Path(),
899 lastSlash - file.Path().String());
918 BString targetPath(file.Path());
919 FSUtils::Path relativeSourcePath(file.Path());
940 file.UpdateType());
944 file.UpdateType());
955 // * If the file doesn't exist, just copy the extracted one.
956 // * If the file does exist, compare with the previous original version:
959 // first back the file up, then try the merge.
967 "couldn't get stat for writable file \"%s\", copying...\n",
1011 "writable file \"%s\" exists, but type doesn't match previous "
1061 // get the package the target file originated from
1069 "file needs to be updated\n",
1082 "file \"%s\" tagged with same package version we're activating\n",
1128 // compare file content
1141 "file comparison \"%s\" failed (%s) or files aren't equal\n",
1200 // Replace the existing file/symlink. We do that in two steps: First
1201 // copy the new file to a neighoring location, then move-replace the
1202 // old file.
1677 "entry for file: %s", strerror(error));
1696 // write the file
1749 BFile file;
1751 fileName, B_READ_WRITE | B_CREATE_FILE | B_ERASE_FILE, file, &_entry);
1754 "file \"%s/%s\": %s\n", directoryPath.ToString().String(), fileName,
1759 ssize_t bytesWritten = file.Write(content.String(),
1763 "file \"%s/%s\": %s\n", directoryPath.ToString().String(), fileName,
1781 // write the temporary package activation file
1795 // rename the temporary activation file to the final file
1807 // events. Alternatively moving the package activation file could be made part
1810 // bad anyway, though, since the activation file may refer to removed packages
2043 "Package file '%s' already exists in target folder "