chardev gets filepath