Lines Matching refs:directory

171 		fEntryRef.directory = entryRef.directory;
453 Directory* directory = new(std::nothrow) Directory(nodeRef);
454 if (directory == NULL || directory->fEntries.Init() != B_OK) {
455 delete directory;
459 return directory;
584 status_t _AddEntryIfNeeded(Directory* directory,
766 // B_WATCH_NAME is implied (we watch the parent directory).
971 // directory, since we need to watch the entries.
1044 // 1. a directory is created
1045 // 2. a file is created in the directory
1046 // 3. the file is removed from the directory
1065 || message->FindInt64("directory", &entryRef.directory) != B_OK
1076 entryRef.directory, entryRef.name, nodeRef.device, nodeRef.node);
1097 || message->FindInt64("directory", &entryRef.directory) != B_OK
1108 entryRef.directory, entryRef.name, nodeRef.device, nodeRef.node);
1124 || message->FindInt64("from directory", &fromEntryRef.directory) != B_OK
1125 || message->FindInt64("to directory", &toEntryRef.directory) != B_OK
1141 ":%" B_PRIdINO "\n", this, fromEntryRef.device, fromEntryRef.directory,
1142 fromEntryRef.name, toEntryRef.device, toEntryRef.directory,
1243 // directory node in this case.
1245 debugger("path ancestor exists, but doesn't have a directory");
1247 // to create the directory earlier.
1291 // An entry was moved in a true ancestor directory or between true ancestor
1415 // The directory is a true ancestor -- the notification is only of
1438 // The directory is our path. If watching recursively, just fall
1439 // through. Otherwise, we want to pass on the notification, if directory
1461 Directory* directory = directoryNode->ToDirectory();
1462 if (directory == NULL) {
1485 if (Entry* nodeEntry = directory->FindEntry(entryRef.name)) {
1498 _AddEntryIfNeeded(directory, entryRef.name, nodeRef, isDirectory, notify,
1548 // The directory is a true ancestor -- the notification cannot be
1553 // The directory is our path. If watching recursively, just fall
1554 // through. Otherwise, we want to pass on the notification, if directory
1560 // We don't know whether this was a directory, but it
1575 // We shouldn't get a notification, if we don't known the directory.
1579 Directory* directory = directoryNode->ToDirectory();
1580 if (directory == NULL) {
1583 // and its parent directory after all) and rather hard to verify.
1587 Entry* nodeEntry = directory->FindEntry(entryRef.name);
1589 // might be a non-directory node while we're in directories-only mode
1697 // recursively add the directory's descendents
1698 BDirectory directory;
1699 if (directory.SetTo(&nodeRef) != B_OK) {
1706 while (directory.GetNextRef(&entryRef) == B_OK) {
1716 ", isDirectory: %d, notify: %d): failed to add directory "
1730 if (Directory* directory = node->ToDirectory()) {
1731 Entry* entry = directory->RemoveAllEntries();
1755 PathHandler::_AddEntryIfNeeded(Directory* directory, const char* name,
1761 ", isDirectory: %d, notify: %d)\n", this, directory->NodeRef().device,
1762 directory->NodeRef().node, name, nodeRef.device, nodeRef.node,
1771 Entry* entry = directory->CreateEntry(name, NULL);
1778 directory->RemoveEntry(entry);
1817 Directory* directory = entry->Node()->ToDirectory();
1818 if (directory == NULL) {
1823 for (EntryMap::Iterator it = directory->GetEntryIterator(); it.HasNext();)
1849 entryRef.device, entryRef.directory, entryRef.name, nodeRef.device,
1855 message.AddInt64("directory", entryRef.directory);
1859 // the directory, as another FS cannot yet/no longer be mounted there.
1861 // the notification is triggered in response to a directory tree having
1883 fromEntryRef.directory, fromEntryRef.name, toEntryRef.device,
1884 toEntryRef.directory, toEntryRef.name, nodeRef.device, nodeRef.node);
1889 message.AddInt64("from directory", fromEntryRef.directory);
1890 message.AddInt64("to directory", toEntryRef.directory);