Hi Vivekananthan, Created public jira [1].
[1] https://wso2.org/jira/browse/ESBCONNECT-186 On Wed, Feb 8, 2017 at 7:16 AM, Vivekananthan Sivanayagam < [email protected]> wrote: > Hi Maduranga, > > We'll consider those behavior in the future release of the connector. Please > create a Jira. > > @Malaka, Can you confirm it? > > Thanks, > Vivek. > > Vivekananthan Sivanayagam > Associate Software Engineer | WSO2 > E:[email protected] > M:+94752786138 <+94%2075%20278%206138> > > On Wed, Feb 8, 2017 at 6:05 PM, Maduranga Siriwardena <[email protected]> > wrote: > >> Hi Vivekananthan, >> >> Comparing the linux file operations, >> >> *cp -r in/ out/* >> "in" folder is copied to the "out" folder and "in" folder will be inside >> the "out" folder. >> *cp in/* out/* >> contents of the "in" folder is copied to the "out" folder and there will >> be no "in" folder inside the "out" folder. This is similar to copy >> operation in the connector when the source is a folder. >> >> *mv in/ out/* >> "in" folder is moved to the "out" folder and "in" folder will be inside >> the "out" folder. "in" folder is removed in the operation. >> *mv in/* out/* >> contents of the "in" folder is moved to the "out" folder and there will >> be no "in" folder inside the "out" folder. After the operation "in" folder >> is also there. >> *mv in/aa.txt out/* >> "aa.txt" file will be moved to the "out" folder. We don't need to specify >> the destination file name. >> *mv in/aa.txt out/aa.txt* >> "aa.txt" file will be moved to the "out" folder. This is similar to the >> file move operation in the connector. >> >> Please do consider the above mentioned linux file copy and move >> operations and the connector behavior. >> >> Thanks, >> >> On Tue, Feb 7, 2017 at 10:39 PM, Vivekananthan Sivanayagam < >> [email protected]> wrote: >> >>> 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 <+94%2075%20278%206138> >>> >>> 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 >>>> >>>> >>> >> >> >> -- >> 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 Blog: http://madurangasblogs.blogspot.com/ <http://wso2.com/signature>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
