**Expected Behavior** <!--- Tell us how it should work --> chmod should need to work when the FileWritingMessageHandler's deleteSourceFiles property is true. **Current Behavior** <!--- Explain the difference from current behavior --> When the deleteSourceFiles property of FileWritingMessageHandler is true, chmod does not work. **Context** <!--- How has this issue affected you? What are you trying to accomplish? What other alternatives have you considered? Are you aware of any workarounds? --> My code is as follows: ```java @Bean public IntegrationFlow pacToZipFlow(MessageChannel packToZipChannel, FileSynchronizerProperties fileSynchronizerProperties) { return IntegrationFlow .from(packToZipChannel) .transformWith(transformer -> transformer.transformer(new ZipTransformer())) .handle(Files .outboundAdapter(new File(fileSynchronizerProperties.outputDirectory())) .fileNameGenerator(message -> System.currentTimeMillis() + FileConsts.ZIP_FILE_SUFFIX) .deleteSourceFiles(true) .chmod(0700) ) .get(); } ``` When deleteSourceFiles is true, the setPermissions(resultFile) method is not called in the handleFileMessage method of FileWritingMessageHandler.