     @getRelativePath()
 
   getRelativePath: ->
-    @state.get('relativePath')
+    @relativePath
 
   # Sets the path for the file.
   #

        @emitModifiedStatusChanged(@isModified())

    @file.on "moved", =>
      @state.set('relativePath', @project.relativize(@getPath()))
      @emit "path-changed", this

  ### Public ###

    else
      @file = null

    @relativePath = @project.relativize(path)
    @emit "path-changed", this

  # Retrieves the current buffer's file extension.
