Community
Participate
Working Groups
The spec for IFile.appendContents spec does not mention what happens when the file is non-local. It should fail indicating the file is non-local.
Spec mentioned that if FORCE=true then the contents are appended and the resource is marked as being local even if it wasn't before. Is this correct?
If force=true, IFile is non-local, file exists in local file system: make IFile local, append contents (the thinking being that this file, though marked non-local, was in fact local awaiting discovery; so force=true says we it is ok to make file local and proceed as per normal) If force=true, IFile is non-local, file does not exist in local file system: fail - file not local (this file is not local for real - cannot append something to a file that you don't have) If force=false, IFile is non-local, file exists in local file system: fail - file not local If force=false, IFile is non-local, file does not exist in local file system: fail - file not local
Clarified spec. Updated tests. Fixed implementation. (bug found by new tests) Released.