 fs = require("fs")
 request = require("request")
 settings = require("settings-sharelatex")
+
+oneMinInMs = 60 * 1000
+fiveMinsInMs = oneMinInMs * 5
 
 module.exports =
 

					project_id:oldProject_id
					file_id:oldFile_id
			uri: @_buildUrl(newProject_id, newFile_id)

		request opts, (err)->
			if err?
				logger.err err:err, oldProject_id:oldProject_id, oldFile_id:oldFile_id, newProject_id:newProject_id, newFile_id:newFile_id, "something went wrong telling filestore api to copy file"

		opts =
			method: "post"
			uri: @_buildUrl(project_id, file_id)
			timeout:fiveMinsInMs
		writeStream = request(opts)
		readStream.pipe writeStream
		writeStream.on "end", callback
