open_in_new
content_copy
from pathlib import Path Path('/root/dir/sub/file.ext').stem