Method MasterObject()->program_path_to_name()
- Method program_path_to_name
stringprogram_path_to_name(stringpath,void|stringmodule_prefix,void|stringmodule_suffix,void|stringobject_suffix)- Description
Converts a module path on the form
"Foo.pmod/Bar.pmod"or"/path/to/pike/lib/modules/Foo.pmod/Bar.pmod"to a module identifier on the form"Foo.Bar".If
module_prefixormodule_suffixare given, they are prepended and appended, respectively, to the returned string if it's a module file (i.e. ends with".pmod"or".so"). Ifobject_suffixis given, it's appended to the returned string if it's an object file (i.e. ends with".pike").