Hello,

Currently, the FIlesystem API just does not handle directory copy/move. I'd
like to implement that, so I need to clarify the semantics.

The specs at
https://developer.tizen.org/dev-guide/2.2.0/org.tizen.web.device.apireference/tizen/filesystem.html#copyToidp348064
are unclear about what happens when the destination path is an existing
directory.

The description says "The copy of the file or directory identified by the
originFilePath parameter MUST be created in the path passed in the
destinationFilePath parameter." but the parameter description says :
"destinationFilePath: The new full virtual file path or directory path".

So if destination is an existing directory, should we copy/move _inside_ it
or should we try to _replace_ it (with success if overwrite is true) ?

The tct-filesystem-tizen-tests are just adding to the confusion here. The
tests assume that :
 - if both origin and destination are directories, the target is
overwritten (if overwrite is true, otherwise fail);
 - if origin is a file and destination is a directory, the file is
copied/moved _into_ the target.

A consistent way would be to follow unix command semantics (always
copy/move _inside_ existing directories).

Thank you for helping to clarify that.

Romuald.
_______________________________________________
Crosswalk-dev mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev

Reply via email to