Skip to content

Commit

Permalink
2010-11-26 Tatsuhiro Tsujikawa <[email protected]>
Browse files Browse the repository at this point in the history
	Include last '/' to directory name to create. This will avoid to
	create directory 'C:' in Windows.
	* src/File.cc
  • Loading branch information
tatsuhiro-t committed Nov 26, 2010
1 parent 0455cde commit 721f53e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2010-11-26 Tatsuhiro Tsujikawa <[email protected]>

Include last '/' to directory name to create. This will avoid to
create directory 'C:' in Windows.
* src/File.cc

2010-11-25 Tatsuhiro Tsujikawa <[email protected]>

Removed unused FileEntry::setupDir()
Expand Down
4 changes: 2 additions & 2 deletions src/File.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ bool File::mkdirs() {
++i;
continue;
}
i = j;
if(j != eoi) {
++i;
++j;
}
i = j;
std::string dir = std::string(name_.begin(), j);
if(File(dir).isDir()) {
continue;
Expand Down

0 comments on commit 721f53e

Please sign in to comment.