|
Change how File/Directory/Link .delete works.
Now:
- File.delete works iff path is File or Link.
- Directory.delete works iff path is Directory or Link.
- Link.delete works iff path Link.
This now matches .exists.
BUG=
Committed: https://code.google.com/p/dart/source/detail?r=21045
Total comments: 18
Total comments: 6
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+816 lines, -73 lines) |
Patch |
|
M |
runtime/bin/builtin_natives.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/directory_android.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+10 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/bin/directory_linux.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+10 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/bin/directory_macos.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+10 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/bin/directory_win.cc
|
View
|
1
2
3
4
5
6
|
6 chunks |
+37 lines, -14 lines |
0 comments
|
Download
|
|
M |
runtime/bin/file.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/bin/file.cc
|
View
|
1
2
3
|
3 chunks |
+33 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/file_android.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+18 lines, -4 lines |
0 comments
|
Download
|
|
M |
runtime/bin/file_linux.cc
|
View
|
1
2
3
|
1 chunk |
+18 lines, -4 lines |
0 comments
|
Download
|
|
M |
runtime/bin/file_macos.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+18 lines, -4 lines |
0 comments
|
Download
|
|
M |
runtime/bin/file_patch.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/file_win.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+24 lines, -29 lines |
4 comments
|
Download
|
|
M |
sdk/lib/io/file_impl.dart
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
sdk/lib/io/link.dart
|
View
|
1
2
3
4
5
|
4 chunks |
+31 lines, -7 lines |
0 comments
|
Download
|
|
A |
tests/standalone/io/file_system_delete_test.dart
|
View
|
1
2
3
4
5
|
1 chunk |
+393 lines, -0 lines |
0 comments
|
Download
|
|
A |
tests/standalone/io/file_system_exists_test.dart
|
View
|
1
2
3
4
5
|
1 chunk |
+204 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/standalone/io/file_system_links_test.dart
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tests/standalone/io/windows_file_system_links_test.dart
|
View
|
1
2
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
Total messages: 8 (0 generated)
|