 	# ---------------------------------
 	# Collection Helpers
 
-	# Get Files (will use live collections)
+	# Get files (will use live collections)
 	getFiles: (query,sorting,paging) ->
 		key = JSON.stringify({query,sorting,paging})
 		files = @getCollection(key)

			@setCollection(key, files)
		return files

	# Get another file's model based on a relative path
	getFile: (query,sorting,paging) ->
		file = @getDatabase().findOne(query,sorting,paging)
		return file

	# Get Files At Path
	getFilesAtPath: (path,sorting,paging) ->
		query = $or: [{relativePath: $startsWith: path}, {fullPath: $startsWith: path}]
		files = @getFiles(query,sorting,paging)
		return files

	# Get another file's model based on a relative path
	getFileAtPath: (path,sorting,paging) ->
		file = @getDatabase().fuzzyFindOne(path,sorting,paging)
		return file

	# Get a file by its url
	getFileByUrl: (url,opts={}) ->
		opts.collection ?= @getDatabase()
		file = opts.collection.get(@filesByUrl[url])

		@

	# Get a file by its selector
	# TODO: What on earth is a selector?
	getFileBySelector: (selector,opts={}) ->
		opts.collection ?= @getDatabase()
		file = opts.collection.get(@filesBySelector[selector])
