/*
 *  FileHelpers.m
 *  Homepwner
 *
 *  Created by Frank Mcpherson on 5/15/10.
 *  Copyright 2010 bitdoctors.com. All rights reserved.
 *
 */

#include "FileHelpers.h"

NSString *pathInDocumentDirectory(NSString *fileName)
{
	// Get list of document directories in the sandbox
	NSArray *documentDirectories = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
	
	// Grab the first one
	NSString *documentDirectory = [documentDirectories objectAtIndex:0];
	
	return [documentDirectory stringByAppendingPathComponent:fileName];
}