팩토리 » Api

getfilepathinfo

Description

파일 경로에 대한 파일 경로 정보 오브젝트를 반환한다.

Parameters

Parameters Type Description
strFilePath STRING 파일 경로

Return Value

Type Description
class 파일 경로 정보 오브젝트

Remark

파일 경로 정보 오브젝트 구조는 아래와 같다.

** 파일 경로 정보 오브젝트 = { file_dir: "", // 디렉토리 경로 file_name: "", // 파일 이름 file_base_name: "", // 파일 확장자를 제외한 파일 이름 file_ext: "" // 파일 확장자 };

Example

function btnTest_on_mouseup(objInst) { var file_path_info; file_path_info = factory.getfilepathinfo("C:\\xFrame5\\_listfile.txt"); factory.consoleprint("DIR = " + file_path_info.file_dir); factory.consoleprint("NAME = " + file_path_info.file_name); if (file_path_info.file_base_name) { factory.consoleprint("BASE NAME = " + file_path_info.file_base_name); factory.consoleprint("EXT = " + file_path_info.file_ext); } }

Viewer Ver.

23.4.27.1

Update Date

20231201