This page is Out of Date

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

moveTo

Summary

Move an EntrySync to a different location on the file system.

Out of date; feature discontinued. See http://www.w3.org/TR/file-system-api.

Method of apis/filesystem/EntrySyncapis/filesystem/EntrySync

Syntax

var  = EntrySync.moveTo(parent, newName);

Parameters

parent

Data-type
String

The directory to which to move the EntrySync.

newName

Data-type
String

(Optional)

The new name of the EntrySync. Defaults to the EntrySync’s current name if unspecified.

Return Value

Returns an object of type

EntrySync

Notes

It is an error to try to:

  • move a directory inside itself or to any child at any depth;
  • move an entry into its parent if a name different from its current one isn’t provided;
  • move a file to a path occupied by a directory;
  • move a directory to a path occupied by a file;
  • move any element to a path occupied by a directory which is not empty.

A move of a file on top of an existing file must attempt to delete and replace that file.

A move of a directory on top of an existing empty directory must attempt to delete and replace that directory.

Related specifications

W3C File API: Directories and System Specification
W3C Working Draft