Source/CSBackend/Platform/Android/Main/Java/com/chilliworks/chillisource/core/FileUtils.java
/**
	 * Returns whether or not the given file exists in the given 
	 * storage location.
	 * 
	 * @author Ian Copland
	 * 
	 * @param The storage location. If APK, the CSApplication and CSActivity
	 * must exist.
	 * @param The file path.
	 * 
	 * @return Whether or not the path exists.
	 */
Returns whether or not the given file exists in the given
storage location.

@author Ian Copland

@param The storage location. If APK, the CSApplication and CSActivity
must exist.
@param The file path.

@return Whether or not the path exists.
Returns whether or not the given file exists in the given storage location . @author Ian Copland @param The storage location . If APK the CSApplication and CSActivity must exist . @param The file path . @return Whether or not the path exists .
public static boolean doesFileExist(StorageLocation in_storageLocation, String in_filePath)
	{
		switch (in_storageLocation)
		{
			case k_root:
				return doesFileExist(in_filePath);
			case k_externalStorage:
				return doesFileExist(StringUtils.StandardisePath(getExternalStorageDirectory()) + in_filePath);
			case k_internalStorage:
				return doesFileExistInternal(in_filePath);
			case k_apk:
				return doesFileExistAPK(CSApplication.get().getActivity(), in_filePath);
			default:
				Logging.logFatal("FileUtils: Invalid storage location.");
				return false;
		}
	}
public static boolean doesFileExist ( StorageLocation in_storageLocation , String in_filePath ) { switch ( in_storageLocation ) { case k_root : return doesFileExist ( in_filePath ) ; case k_externalStorage : return doesFileExist ( StringUtils . StandardisePath ( getExternalStorageDirectory ( ) ) + in_filePath ) ; case k_internalStorage : return doesFileExistInternal ( in_filePath ) ; case k_apk : return doesFileExistAPK ( CSApplication . get ( ) . getActivity ( ) , in_filePath ) ; default : Logging . logFatal ( "FileUtils: Invalid storage location." ) ; return false ; } }
Returns whether or not the given file exists in the given
 storage location.
Returns whether or not the given file exists in the given storage location .