public boolean loadDataFiles(String filePath, String dataType) {
		File folder = new File(filePath);
		BatchLoadDataWithHibernate obj2 = new BatchLoadDataWithHibernate();
		String filename = "";
		File[] listOfFiles = folder.listFiles();
		int count = 0;

		try {

			for (int i = 0; i < listOfFiles.length; i++) {
				if (listOfFiles[i].isFile() && listOfFiles[i].getName().toString() != ".DS_Store") {
					filename = listOfFiles[i].getName();
					
					count++;
					
					//Start Time
					WriteToFile.appendToFileMethod(count+" :: "+ new Timestamp(System.currentTimeMillis())+" :: FileName : "+filename+" \n", "/home/krish/Documents/CMPE226/Project1/logLoadTime.txt");
					
					if(dataType.equals("weatherData"))
						obj2.uploadWeatherDataToDBBatch(filePath+filename);
					else
						obj2.uploadMetaDataToDBBatch(filePath+filename);

					//End Time
					WriteToFile.appendToFileMethod(count+" :: "+ new Timestamp(System.currentTimeMillis())+" :: FileName : "+filename+" \n", "/home/krish/Documents/CMPE226/Project1/logLoadTime.txt");
					
					File movefile = new File(filePath+filename);
					if (movefile.renameTo(new File(filePath + "archive/"
							+ movefile.getName()))) {
						System.out.println("File is moved successful!");
					} else {
						System.out.println("File is failed to move!");
					}

				}
			}
		} catch (Exception e) {
			System.out.println("File was not processed" + filename);
			e.printStackTrace();
		}

		return true;
	}