Method MasterObject()->program_path_to_name()
- Method
program_path_to_name
stringprogram_path_to_name(stringpath,string|voidmodule_prefix,string|voidmodule_suffix,string|voidobject_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").