newDummyLink method

  1. @Deprecated('Not used by clients')
File newDummyLink(
  1. String path
)

Create a resource representing a dummy link (that is, a File object which appears in its parent directory, but whose exists property is false)

Implementation

@Deprecated('Not used by clients')
File newDummyLink(String path) {
  _ensureAbsoluteAndNormalized(path);
  newFolder(pathContext.dirname(path));
  _MemoryDummyLink link = _MemoryDummyLink(this, path);
  _notifyWatchers(path, ChangeType.ADD);
  return link;
}