Skip to content

Commit

Permalink
Merge pull request #98 from keerthu/master
Browse files Browse the repository at this point in the history
Remove unnecessary file creation in File connector rename operation
  • Loading branch information
keerthu authored Oct 17, 2019
2 parents 091d4d5 + ef8aa45 commit 12e3118
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The File [Connector](https://docs.wso2.com/display/EI650/Working+with+Connectors

| Connector version | Supported WSO2 ESB/EI version |
| ------------- |------------- |
| [2.0.19](https://github.com/wso2-extensions/esb-connector-file/tree/org.wso2.carbon.connector.fileconnector-2.0.19) | EI 6.5.0, EI 6.4.0 |
| [2.0.18](https://github.com/wso2-extensions/esb-connector-file/tree/org.wso2.carbon.connector.fileconnector-2.0.18) | EI 6.5.0, EI 6.4.0 |
| [2.0.17](https://github.com/wso2-extensions/esb-connector-file/tree/org.wso2.carbon.connector.fileconnector-2.0.17) | EI 6.5.0, EI 6.4.0 |
| [2.0.16](https://github.com/wso2-extensions/esb-connector-file/tree/org.wso2.carbon.connector.fileconnector-2.0.16) | EI 6.5.0, EI 6.4.0 |
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<groupId>org.wso2.carbon.connector</groupId>
<artifactId>org.wso2.carbon.connector.fileconnector</artifactId>
<packaging>jar</packaging>
<version>2.0.19-SNAPSHOT</version>
<version>2.0.19</version>
<name>WSO2 Carbon - Mediation Library Connector For fileconnector</name>
<url>http://wso2.org</url>
<properties>
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/org/wso2/carbon/connector/FileMove.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ private void fileMove(String destination, FileObject remoteFile, MessageContext
file.createFolder();
}
file = manager.resolveFile(destination + File.separator + remoteFile.getName().getBaseName(), fso);
} else if (!file.exists()) {
file.createFile();
}
remoteFile.moveTo(file);
}
Expand Down

0 comments on commit 12e3118

Please sign in to comment.