File tree 1 file changed +1
-7
lines changed
core/src/main/java/ch/cyberduck/core/features
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 15
15
* GNU General Public License for more details.
16
16
*/
17
17
18
- import ch .cyberduck .core .LocaleFactory ;
19
18
import ch .cyberduck .core .PasswordCallback ;
20
19
import ch .cyberduck .core .Path ;
21
- import ch .cyberduck .core .exception .AccessDeniedException ;
22
20
import ch .cyberduck .core .exception .BackgroundException ;
23
21
import ch .cyberduck .core .transfer .TransferStatus ;
24
22
25
23
import org .apache .logging .log4j .LogManager ;
26
24
import org .apache .logging .log4j .Logger ;
27
25
28
- import java .text .MessageFormat ;
29
26
import java .util .EnumSet ;
30
27
import java .util .LinkedHashMap ;
31
28
import java .util .List ;
@@ -91,10 +88,7 @@ public void delete(Path file) {
91
88
}
92
89
93
90
default void preflight (final Path file ) throws BackgroundException {
94
- if (!file .attributes ().getPermission ().isWritable ()) {
95
- throw new AccessDeniedException (MessageFormat .format (LocaleFactory .localizedString ("Cannot delete {0}" , "Error" ),
96
- file .getName ())).withFile (file );
97
- }
91
+ // No-op
98
92
}
99
93
100
94
/**
You can’t perform that action at this time.
0 commit comments