Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » Copy local file to remote while maintaining directory structure
Copy local file to remote while maintaining directory structure [message #24178] Thu, 26 June 2008 09:57 Go to next message
Eclipse User
Originally posted by: paul.pwrutter.com

Hi
Im trying to copy a local file to a target directory but i need to be able
to retain the directory structure of the file once it arrives on the
target.
EG...

Local file: /temp/folder1/file.txt
copied to: /targetFolder/someDirectory/folder1/file.txt

Does anyone have any ideas on how to achieve this?

Many Thanks
Paul
Re: Copy local file to remote while maintaining directory structure [message #24467 is a reply to message #24178] Tue, 01 July 2008 17:12 Go to previous message
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 983
Registered: July 2009
Senior Member
Hello Paul,

if you're talking about doing this as a "User" through the RSE UI, you'd
want to use the Import/Export wizard: File > Export > Other > Remote
File System -- choose your source and target folders, and be sure to
"ignore" or "deselect" those subfolders that you do not want to export.

Note that the wizard can store your export in a file (*.rexpfd) that you
can easily re-play.

If you are talking about doing this programmatically from your own
plugin, you may want to look at some of the RSE Unit tests which do
exactly this:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.tm.rse/ tests/org.eclipse.rse.tests/src/org/eclipse/rse/tests/subsys tems/files/RSEFileStoreTest.java?root=DSDP_Project&view= markup

Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm




Paul Rutter wrote:
> Hi
> Im trying to copy a local file to a target directory but i need to be
> able to retain the directory structure of the file once it arrives on
> the target. EG...
>
> Local file: /temp/folder1/file.txt
> copied to: /targetFolder/someDirectory/folder1/file.txt
>
> Does anyone have any ideas on how to achieve this?
>
> Many Thanks
> Paul
>
Re: Copy local file to remote while maintaining directory structure [message #575676 is a reply to message #24178] Tue, 01 July 2008 17:12 Go to previous message
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 983
Registered: July 2009
Senior Member
Hello Paul,

if you're talking about doing this as a "User" through the RSE UI, you'd
want to use the Import/Export wizard: File > Export > Other > Remote
File System -- choose your source and target folders, and be sure to
"ignore" or "deselect" those subfolders that you do not want to export.

Note that the wizard can store your export in a file (*.rexpfd) that you
can easily re-play.

If you are talking about doing this programmatically from your own
plugin, you may want to look at some of the RSE Unit tests which do
exactly this:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.tm.rse/ tests/org.eclipse.rse.tests/src/org/eclipse/rse/tests/subsys tems/files/RSEFileStoreTest.java?root=DSDP_Project&view= markup

Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm




Paul Rutter wrote:
> Hi
> Im trying to copy a local file to a target directory but i need to be
> able to retain the directory structure of the file once it arrives on
> the target. EG...
>
> Local file: /temp/folder1/file.txt
> copied to: /targetFolder/someDirectory/folder1/file.txt
>
> Does anyone have any ideas on how to achieve this?
>
> Many Thanks
> Paul
>
Previous Topic:FTP Only not working for IIS
Next Topic:RSE: ftp quit after each transfer
Goto Forum:
  


Current Time: Fri Sep 19 18:04:02 GMT 2014

Powered by FUDForum. Page generated in 0.02281 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software