Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update LegupUI.java #122

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/main/java/edu/rpi/legup/ui/LegupUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -539,11 +539,12 @@ private void traverseDir(File folder, BufferedWriter writer, String path) throws

// Folder is empty
if(folder.listFiles().length == 0) {
writer.append(path + ",Empty folder,0,Ungradeable\n");
writer.append(path + ",Empty folder,,Ungradeable\n");
return;
}

// Travese directory, recurse if sub-directory found
// If ungradeable, do not leave a score (0, 1)
for(final File f : folder.listFiles()) {
// Recurse
if(f.isDirectory()) {
Expand Down Expand Up @@ -574,7 +575,7 @@ private void traverseDir(File folder, BufferedWriter writer, String path) throws
if(puzzle.isPuzzleComplete()) writer.append("1,Solved\n");
else writer.append("0,Unsolved\n");
} catch (InvalidFileFormatException e) {
writer.append(fName + " - invalid type,0,Ungradeable\n");
writer.append(fName + " - invalid type,,Ungradeable\n");
}
} else {
LOGGER.debug("Failed to run sim");
Expand Down