Crate rsfilename

Crate rsfilename 

Source
Expand description

§rsfilename

Windows와 macOS, Linux에서 안전한 파일명을 만듭니다.

Python 구현을 보고 싶다면 다음 링크를 참고하세요: pyfilename

use rsfilename::*;
assert_eq!("hello?.txt..", simply_to_safe_name("  hello?.txt..", true));

Modules§

components

Functions§

is_name_reserved
이름이 Windows에서 예약되었는지를 확인합니다.
is_safe_name
이름이 안전하게 변경 없이 사용될 수 있는지 검사합니다.
simply_to_safe_name
간단하게 안전한 파일명을 만듭니다.
to_safe_name
안전한 이름으로 변환된 이름을 리턴합니다.