Skip to content
This repository has been archived by the owner on Apr 4, 2021. It is now read-only.

Commit

Permalink
FALCON-2290 adding timestamp to staging directory
Browse files Browse the repository at this point in the history
  • Loading branch information
PracheerAgarwal committed Feb 28, 2017
1 parent beece2d commit 301ae0a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -148,7 +148,7 @@ private static void stageEntities(List<Entity> entities, String stagePath) {

private static String createStagePath(String extensionName, String jobName) {
String stagePath = TMP_BASE_DIR + File.separator + extensionName + PATH_SEPARATOR + jobName
+ File.separator + System.currentTimeMillis()/1000;
+ PATH_SEPARATOR + System.currentTimeMillis()/1000;
File tmpPath = new File(stagePath);
if (tmpPath.mkdir()) {
throw new FalconCLIException("Failed to create stage directory" + tmpPath.toString());
Expand Down

0 comments on commit 301ae0a

Please sign in to comment.