help compiling to windows
error[E0599]: no method named is_dirfound for type parameterTPath` in the current scope
| --> src\app\file_system\functions.rs:31:18
| |
| 31 | if item_path.is_dir() {
| | ^^^^^^ method not found in TPath
|
| For more information about this error, try rustc --explain E0599.
| error: could not compile sfm due to previous err`
what is happening with it?? and how could i fix it
actually the file functions.rs as far as i know (i don't know so much i just understand a little bit) is well #[cfg(windows)] pub fn create_link<TPath: AsRef<Path>>(symlink_path: TPath, item_path: TPath) -> io::Result<()> { let symlink_path = expand_if_contains_tilde(symlink_path).unwrap(); if item_path.is_dir() { fs::symlink_dir(item_path, symlink_path) } else { fs::symlink_file(item_path, symlink_path) } }
it is a problem with my rust install or with the project iitself??? i want to know what to do
I try to compile it on Linux and it works. It can be some problem on windows. Currently, I don't have access to my windows box. I will try to check it on weekend