Hi Maduranga,

The basic behavior of the file/folder move operation is, once you move the
file/folder from source to destination completely, the source file/folder
will be deleted(Copy followed by Delete). If you want to keep the
file/folder after moving to destination, you have to use the copy operation.

If you want to move a file, you have to specify the destination as a
file(with extension). If you need to just copy the file to the destination
folder, here also you can use file copy operation(You don't need to mention
the extension in the destination path).

Thanks,
Vivek

Vivekananthan Sivanayagam
Associate Software Engineer | WSO2
E:[email protected]
M:+94752786138

On Wed, Feb 8, 2017 at 6:11 AM, Maduranga Siriwardena <[email protected]>
wrote:

> Hi Malaka,
>
> I tried this with Windows local file system.
>
> Thanks,
>
> On Tue, Feb 7, 2017 at 6:34 PM, Malaka Silva <[email protected]> wrote:
>
>> Hi Maduranga,
>>
>> What is the file system / Protocol you tried this with?
>>
>> On Tue, Feb 7, 2017 at 11:10 PM, Maduranga Siriwardena <
>> [email protected]> wrote:
>>
>>>
>>>
>>> On Tue, Feb 7, 2017 at 10:54 AM, Maduranga Siriwardena <
>>> [email protected]> wrote:
>>>
>>>> Hi,
>>>>
>>>> While working with the file connector version 2 in [1], I noticed below
>>>> limitations.
>>>>
>>>>    1. When moving a folder there is no way to move the contents of a
>>>>    folder without deleting the source folder.
>>>>    2. When moving a file, if we specify a folder as a destination,
>>>>    this folder is converted to a file with the name of the source file
>>>>    (without the file extension). Shouldn't the file just copied to the
>>>>    destination folder?
>>>>
>>>> Destination folder is converted to a file with the destination folder
>>> name (not with the name of the source file).
>>>
>>> Can these be done as improvements to the connector?
>>>>
>>>> [1] https://store.wso2.com/store/assets/esbconnector/details
>>>> /48bab332-c6a6-4f5a-9b79-17e29c7ad4c6
>>>>
>>>> --
>>>> Maduranga Siriwardena
>>>> Software Engineer
>>>> WSO2 Inc; http://wso2.com/
>>>>
>>>> Email: [email protected]
>>>> Mobile: +94718990591 <+94%2071%20899%200591>
>>>> Blog: http://madurangasblogs.blogspot.com/
>>>> <http://wso2.com/signature>
>>>>
>>>
>>>
>>>
>>> --
>>> Maduranga Siriwardena
>>> Software Engineer
>>> WSO2 Inc; http://wso2.com/
>>>
>>> Email: [email protected]
>>> Mobile: +94718990591 <071%20899%200591>
>>> Blog: http://madurangasblogs.blogspot.com/
>>> <http://wso2.com/signature>
>>>
>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Associate Director / Architect
>> M: +94 777 219 791 <+94%2077%20721%209791>
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> https://wso2.com/signature
>> http://www.wso2.com/about/team/malaka-silva/
>> <http://wso2.com/about/team/malaka-silva/>
>> https://store.wso2.com/store/
>>
>> Don't make Trees rare, we should keep them with care
>>
>
>
>
> --
> Maduranga Siriwardena
> Software Engineer
> WSO2 Inc; http://wso2.com/
>
> Email: [email protected]
> Mobile: +94718990591 <+94%2071%20899%200591>
> Blog: http://madurangasblogs.blogspot.com/
> <http://wso2.com/signature>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to