Skip to content

Commit

Permalink
Automatically create source directory by default
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Feb 24, 2015
1 parent e10852d commit 67cd705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Data/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct($sourcePath) {
]);
}
if(!is_dir($absoluteSourcePath)) {
throw new DataSourceNotFoundException($sourcePath);
mkdir($absoluteSourcePath, 0775, true);
}
$this->sourcePath = $absoluteSourcePath;
}
Expand Down

0 comments on commit 67cd705

Please sign in to comment.