Previous Thread
Next Thread
Print Thread
File name truncation during copy Operation #31241 18 Feb 14 02:43 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
I had a directory that contained files with names longer than 10 characters. I used ashell copy command (as oppose to linux) to copy these files to another directory and it truncated the names down to 10 digits. eek

Is this by design? Should ashell even attempt the copy? or warn if this is the case?

Last edited by Ty Griffin; 14 Aug 19 02:10 AM.
Re: File name truncation during copy Operation! #31242 18 Feb 14 03:03 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
You need to enclose in double-quotes any filespecs that are not 10.3 compatible. For example:

Code
.COPY "/vm/miame/some directory/this is a long filename.dat" = shortname.dat

.COPY shortname.dat = "/vm/miame/some directory/this is a long filename.dat"

.COPY "/this is one/long file name.dat" = "/another/long file name.dat" 
This technique should work any place you use a filespec within a program (e.g. OPEN, LOOKUP, etc.) and also on the command line of any LIT command that supports wildcards, plus a few that don't, such as VUE and TYPE. (See Native Filespecs , which I located in the documentation index under File > specs).

Re: File name truncation during copy Operation! #31243 18 Feb 14 03:31 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
i get the program specific filespecs, i guess i expected the operating system environment to protect me from myself...

Re: File name truncation during copy Operation! #31244 18 Feb 14 04:08 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
The problem with native specs in LIT arguments is that they may look like switches, so the quoting was required to preserve compatibility with existing syntax.


Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3