'Just copy the file into the filestore.'

def UploadFile(self, args):

    file_fd = vfs.VFSOpen(args.pathspec)
    fs = file_store.FileUploadFileStore()
    fd = fs.CreateFileStoreFile()
    while True:
        data = file_fd.read(self.BUFFER_SIZE)
        if (not data):
            break
        fd.write(data)
    file_id = fd.Finalize()
    return [rdf_client.UploadedFile(stat_entry=file_fd.Stat(), file_id=file_id)]
