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

file systems: Move pathbuf_from_stdout to fsext.rs #6740

Open
prsabahrami opened this issue Sep 26, 2024 · 0 comments
Open

file systems: Move pathbuf_from_stdout to fsext.rs #6740

prsabahrami opened this issue Sep 26, 2024 · 0 comments

Comments

@prsabahrami
Copy link

Hi!
I think it would be good to move the pathbuf_from_stdout to fsext.rs file as mentioned in a commend above the function as well inside the touch.rs file and make it public. It is a fairly useful function!

// TODO: this may be a good candidate to put in fsext.rs
/// Returns a PathBuf to stdout.
///
/// On Windows, uses GetFinalPathNameByHandleW to attempt to get the path
/// from the stdout handle.
fn pathbuf_from_stdout() -> Result<PathBuf, TouchError> {
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

1 participant