Skip to content

Commit

Permalink
Don't create project directory to write dc.xml
Browse files Browse the repository at this point in the history
Don't create a project directory when writing the dc.xml file if
it doesn't alrady exist. The project is likely deleted or
posted/archived and creating the directory is incorrect.

Task #1671
  • Loading branch information
cpeel committed Jan 10, 2017
1 parent 59aadc8 commit 0fa356a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pinc/Project.inc
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,9 @@ EOS;

if(!is_dir($dirname))
{
mkdir($dirname);
// If the project directory doesn't exist, the project was likely
// deleted or posted/archived.
return;
}

if(!file_exists($filename))
Expand Down

0 comments on commit 0fa356a

Please sign in to comment.