decided in favor of dedicated COMPONENT() macro, updates to documentation
This commit is contained in:
@@ -129,6 +129,19 @@ String dirname(String fn)
|
||||
return(result);
|
||||
}
|
||||
|
||||
String path_join(String base, String child)
|
||||
{
|
||||
if(base == "")
|
||||
return(child);
|
||||
if(child == "")
|
||||
return(base);
|
||||
if(child[0] == '/')
|
||||
return(child);
|
||||
if(base[base.length() - 1] == '/')
|
||||
return(base + child);
|
||||
return(base + "/" + child);
|
||||
}
|
||||
|
||||
bool mkdir(String path)
|
||||
{
|
||||
shell_exec(String("mkdir -p ")+" "+shell_escape(path));
|
||||
|
||||
Reference in New Issue
Block a user