Changeset 231d038 in tol
- Timestamp:
- Oct 26, 2008, 10:33:12 AM (18 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- e7bf535
- Parents:
- 8958dab
- File:
-
- 1 edited
-
tol/stdlib/general/system/_system.tol (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/general/system/_system.tol
r8958dab r231d038 16 16 // OSFilCopy: Copies a file to other directory or with a different name. 17 17 // OSFilMove: Moves a file to other directory or with a different name. 18 // OSFilCat: Cats a set of files into a new one. 18 19 // OSDirExist: Cheks if a folder exists 19 20 // OSDirMake: Creates a directory and all its non existent parents … … 364 365 OSPathQt(oldFil)+" "+OSPathQt(newFil)); 365 366 OSShowErr(ok,call) 366 367 367 }; 368 368 ////////////////////////////////////////////////////////////////////////////// … … 396 396 En caso de error devuelve FALSO y si no CIERTO"), 397 397 OSFilMove); 398 ////////////////////////////////////////////////////////////////////////////// 399 400 ////////////////////////////////////////////////////////////////////////////// 401 Real OSFilCat(Set oldFiles, Text newFil) 402 ////////////////////////////////////////////////////////////////////////////// 403 { 404 Text call = "OSFilCat("<<oldFiles+","+newFil+")"; 405 Text OSTrace(3,call); 406 Real ok = OSCmdWait(If(OSUnix, 407 { 408 "cat"+SetSum(For(1,Card(oldFiles),Text(Real k) 409 { 410 " "+OSPathQt(oldFiles[k]) 411 }))+" > "+OSPathQt(newFil) 412 }, 413 { 414 "copy "+SetSum(For(1,Card(oldFiles),Text(Real k) 415 { 416 If(k==1,"","+")+OSPathQt(oldFiles[k]) 417 }))+" "+OSPathQt(newFil) 418 })); 419 OSShowErr(ok,call) 420 }; 421 ////////////////////////////////////////////////////////////////////////////// 422 PutDescription(I2( 423 "Copies a set of files to a new one. 424 Returns TRUE if success or FALSE if an error happens", 425 "Copia un conjunto ficheros en uno nuevo. 426 En caso de error devuelve FALSO y si no CIERTO"), 427 OSFilCat); 398 428 ////////////////////////////////////////////////////////////////////////////// 399 429
Note: See TracChangeset
for help on using the changeset viewer.
