copyfilebycond

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - File handling
Introduced first in SolidGeometry 5.0, Creation date: 2021-01-11, Last change: 2025-09-15

renames a file by moving it - conflict handling in case the target file existst already


Use carefully: The 'copyfilebycond' function has not yet been extensively tested


See Also: , renamefile , filecompareconditon

Example Illustration

 missing image of copyfilebycond(name,newname,condition)

Syntax

overw=copyfilebycond(name,newname,[condition])

Input Parameter

name: Original Name
newname: Expected New name
condition: default is ''not older and not smaller'

Output Parameter

overw: true if rename/overwrite was sucessfull




Copyright 2021-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21