FileSystem: copy() replaced with stream_copy_to_stream(). Solves "Unable to access" error in safe mode.