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

Network paths don't work anymore with version 3.4.0 #3924

Closed
BananaMasterz opened this issue Jun 19, 2024 · 2 comments
Closed

Network paths don't work anymore with version 3.4.0 #3924

BananaMasterz opened this issue Jun 19, 2024 · 2 comments
Labels
bug There is a mistake in the language specification or in an active document

Comments

@BananaMasterz
Copy link

(Not sure if this is the correct repo for the issue so pardon me if not)

Running the following code in dart 3.4.0 on WINDOWS raises PathNotFoundException

import 'dart:io';

void main() async {
  print(await File(r'\\my_srv\some_path\test.txt').exists());
  File(r'\\my_srv\some_path\test.txt').copy(r'C:\path\test.txt');
}

but works fine in earlier versions (like 3.3.4 and 3.0.0).

I see there have been some changes like this one (maybe some more) that could be the cause.

I also see that there are not tests set up for network paths so this isn't caught.

Finally I'm not sure why File().exists()) returns true but .copy() can't see the file... shouldn't both methods resolve the paths in the same manner?

This is my OS:

Edition	Windows 11 Pro
Version	23H2
Installed on	‎27/‎3/‎2024
OS build	22631.3737
@BananaMasterz BananaMasterz added the bug There is a mistake in the language specification or in an active document label Jun 19, 2024
@SuperPenguin
Copy link

I think https://github.com/dart-lang/sdk/issues is the proper repo for this issue instead

@BananaMasterz
Copy link
Author

I think https://github.com/dart-lang/sdk/issues is the proper repo for this issue instead

You're probably right... Opened one there instead at

dart-lang/sdk#56049

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug There is a mistake in the language specification or in an active document
Projects
None yet
Development

No branches or pull requests

2 participants