 
   moveDraft: ->
     try
-      if fs.existsSync(@postPath)
-        alert("Error:\nPost #{@postPath} already exists!")
-      else
-        fs.renameSync(@draftPath, @postPath)
+      fs.moveSync(@draftPath, @postPath)
     catch error
       alert("Error:\n#{error.message}")
 

    localDir = config.get("siteLocalDir")
    postsDir = config.get("sitePostsDir")
    postsDir = utils.dirTemplate(postsDir)
    return path.join(localDir, postsDir)

  getPostName: ->
    template = config.get("newPostFileName")
    date = utils.getDate()
    info =
      title: @getPostTitle()
      extension: @getPostExtension()
    return utils.template(template, $.extend(info, date))

  getPostTitle: ->
    if config.get("publishRenameBasedOnTitle")

      utils.getTitleSlug(@draftPath)

  getPostExtension: ->
    extname = path.extname(@draftPath) if config.get("publishKeepFileExtname")
    extname || config.get("fileExtension")
