ActiveUI

ActiveUI

  • User Guide
  • Developer Documentation

Home > @activeviam/activeui-sdk > ContentServer > updateFile

ContentServer.updateFile property

Create a file at the given path or update an existing one. If the file already exists and no content is given, only permissions will be updated. If the file already exists and overwrite is true, the existing content will be overwritten. Set recursive to true to create a directory and its parents. If false, then the parent must exist.

Signature:

updateFile: (path: ContentServerPath, content: string, owners: PermissionGroups, readers: PermissionGroups, overwrite?: boolean, recursive?: boolean) => Promise<void>;
  • ContentServer.updateFile property
Copyright © 2023 ActiveViam