Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help compiling to windows #18

Open
soyDESKTOP68A2MRFT opened this issue Mar 20, 2022 · 4 comments
Open

help compiling to windows #18

soyDESKTOP68A2MRFT opened this issue Mar 20, 2022 · 4 comments

Comments

@soyDESKTOP68A2MRFT
Copy link

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`

@soyDESKTOP68A2MRFT
Copy link
Author

what is happening with it?? and how could i fix it

@soyDESKTOP68A2MRFT
Copy link
Author

soyDESKTOP68A2MRFT commented Mar 20, 2022

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>(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)
}
}

@soyDESKTOP68A2MRFT
Copy link
Author

it is a problem with my rust install or with the project iitself??? i want to know what to do

@Harunx9
Copy link
Owner

Harunx9 commented Mar 23, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants