首页 > dev > api > name > gb.realfilename 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh_TW eo
前一个  下一个  编辑  重命名  撤销  搜索  管理  
文档  
警告! 该页面未翻译。  参见英文版 
GB.RealFileName
char *GB.RealFileName ( char *path , long len )

Converts a file path from UTF-8 charset to system charset and returns it. Creates a temporary copy of the file if path is not a real file.

If path is relative, i.e. if the file is located in the project or in the current component, then creates a temporary copy of this file and returns its path instead.

If path is absolute, then this function has the same behaviour than GB.FileName.

This function is useful when you have to use a function that needs a path that points at a real file, and you do not have any equivalent that could take the address of the loaded file in memory.

The temporary files are automatically deleted when the interpreter exits.

参见

api/cat/file