Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
FILE_MOVE - FILE_COPY
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
titan  
View profile  
 More options Oct 26 2012, 5:16 am
Newsgroups: comp.lang.idl-pvwave
From: titan <thunder...@inwind.it>
Date: Fri, 26 Oct 2012 02:16:29 -0700 (PDT)
Local: Fri, Oct 26 2012 5:16 am
Subject: FILE_MOVE - FILE_COPY
Hi all,
I'm experiencing a strange behavior of IDL when using FILE_MOVE and FILE_COPY and I'm not able to understand what is going on (probably because it's Friday:)).

I would like to rename a file.

for example:

fname=test_0.txt
new_fname= test_1.txt

Considering what is written in the IDL help it should be enough to do something like this:

"FILE_MOVE, fname, new_fname"

but when I try to do this I got the following error:

"FILE_MOVE: Destination must be a directory. File: test_1.txt"

I get the same error even if I try to move and rename the file to a new directory where I have write permissions.

FILE_MOVE, fname, output_path+new_fname

I have already used in this way this routine but I don't know why I'm facing this problem now.

The same is with FILE_COPY.

Does anybody know any suggestions/workarounds for this?

thanks in advance


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ben.bighair  
View profile  
 More options Oct 26 2012, 9:21 am
Newsgroups: comp.lang.idl-pvwave
From: "ben.bighair" <ben.bigh...@gmail.com>
Date: Fri, 26 Oct 2012 06:21:45 -0700 (PDT)
Local: Fri, Oct 26 2012 9:21 am
Subject: Re: FILE_MOVE - FILE_COPY

Hi,

The documentation* for FILE_MOVE says the destination must be a directory if the source points to more than one file.

"If more than one file is to be moved to a given destination, that destination must exist and be a directory."

Are you sure-sure-sure that 'fname' is a scalar?  You might try...

FILE_MOVE, fname[0], new_fname

Cheers,
Ben

* http://www.exelisvis.com/docs/FILE_MOVE.html  (online - woooohooooo!)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "On-line Docs" by David Fanning
David Fanning  
View profile  
 More options Oct 26 2012, 9:36 am
Newsgroups: comp.lang.idl-pvwave
From: David Fanning <n...@idlcoyote.com>
Date: Fri, 26 Oct 2012 07:36:03 -0600
Local: Fri, Oct 26 2012 9:36 am
Subject: On-line Docs

Ben writes:
> * http://www.exelisvis.com/docs/FILE_MOVE.html  (online - woooohooooo!)

Online and woefully out of date for some of the libraries. :-)

I wonder if there is a plan in place to update the documentation
on a regular basis. Anyone know?

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "FILE_MOVE - FILE_COPY" by titan
titan  
View profile  
 More options Oct 26 2012, 10:34 am
Newsgroups: comp.lang.idl-pvwave
From: titan <thunder...@inwind.it>
Date: Fri, 26 Oct 2012 07:34:24 -0700 (PDT)
Local: Fri, Oct 26 2012 10:34 am
Subject: Re: FILE_MOVE - FILE_COPY

Hi Ben,
I'm sure that it is a scalar because if I try printing the variable I get only one value.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Fanning  
View profile  
 More options Oct 26 2012, 10:38 am
Newsgroups: comp.lang.idl-pvwave
From: David Fanning <n...@idlcoyote.com>
Date: Fri, 26 Oct 2012 08:38:45 -0600
Local: Fri, Oct 26 2012 10:38 am
Subject: Re: FILE_MOVE - FILE_COPY

titan writes:
> I'm sure that it is a scalar because if I try printing the variable I get only one value.

Uh, that is not a good way to tell if it is a scalar. Try
using the HELP command. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "On-line Docs" by Michael Galloy
Michael Galloy  
View profile  
 More options Oct 26 2012, 4:01 pm
Newsgroups: comp.lang.idl-pvwave
From: Michael Galloy <mgal...@gmail.com>
Date: Fri, 26 Oct 2012 14:01:52 -0600
Local: Fri, Oct 26 2012 4:01 pm
Subject: Re: On-line Docs
On 10/26/12 7:36 AM, David Fanning wrote:

> Ben writes:

>> * http://www.exelisvis.com/docs/FILE_MOVE.html  (online - woooohooooo!)

> Online and woefully out of date for some of the libraries. :-)

> I wonder if there is a plan in place to update the documentation
> on a regular basis. Anyone know?

IDLdoc will be able to produce output compatible to what is required by
the Doc Center soon, so hopefully some of the labor of updating these
library docs (at least the ones with IDLdoc formatted comments) will be
eased. I have been working with Exelis VIS to output the correct format
and just have a few more details to finish up.

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Coyote  
View profile  
 More options Oct 26 2012, 4:21 pm
Newsgroups: comp.lang.idl-pvwave
From: Coyote <sageande...@gmail.com>
Date: Fri, 26 Oct 2012 13:21:47 -0700 (PDT)
Local: Fri, Oct 26 2012 4:21 pm
Subject: Re: On-line Docs

Mike Galloy writes:
> IDLdoc will be able to produce output compatible to what is required by
> the Doc Center soon, so hopefully some of the labor of updating these
> library docs (at least the ones with IDLdoc formatted comments) will be
> eased. I have been working with Exelis VIS to output the correct format
> and just have a few more details to finish up.

Oh, this is very good news. Presumably this will be in a machine-readable
format that will allow a deamon to sweep the documentation up on a regular
basis. This will be good for everyone!

Cheers,

David


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "FILE_MOVE - FILE_COPY" by titan
titan  
View profile  
 More options Oct 29 2012, 3:42 am
Newsgroups: comp.lang.idl-pvwave
From: titan <thunder...@inwind.it>
Date: Mon, 29 Oct 2012 00:42:16 -0700 (PDT)
Local: Mon, Oct 29 2012 3:42 am
Subject: Re: FILE_MOVE - FILE_COPY

Hi all,
you were right! It was my mistake!

thanks Ben and thanks David for your suggestions!! I was my mistake and it was not a scalar!
Now it's working! :)

thanks again!!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »