stldir

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Import/Export
Introduced first in SolidGeometry 5.1, Creation date: 2021-11-04, Last change: 2025-09-15

returns path, or filename, or list of existing files

Description

ATTENTION - non conform argout
This function is a mixture of pathname, adding a pathname, and finding files similar to which written especially for STL files, but could easyl modified for alls extensions

See Also: desktopdir

Example Illustration

 missing image of stldir(fname)

Syntax

[flist,fdir]=stldir([fname])

Input Parameter

fname: strinf to search for in the stl default directory

Output Parameter

flist: stldir or path to stldir or list of all files that contains the search string
fdir: corresponding dir result

Examples


[stldir filesep 'sdsd'] % just returns stldir as string
stldir('sdsd') % creates a new filename in to stldir
stldir('jaguar') % fnds all files that contain the string jaguar




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