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

Iconsistent reach of file C:/Windows/System32/drivers/etc/hosts #60

Open
dzmitry-lahoda opened this issue Aug 4, 2015 · 3 comments
Open

Comments

@dzmitry-lahoda
Copy link

Compiles:

  type Windows = FileSystem<"C:/Windows/System32/drivers/etc">
  let updateHosts name (ip:IPAddress) = 
    Windows.hosts

Not compiles (where is etc?):

  type Windows = FileSystem<"C:/Windows/System32/drivers">
  let updateHosts name (ip:IPAddress) = 
    Windows.etc

I want to reach C:/Windows/System32/drivers/etc/hosts which is like local DNS table, sometimes used to to ensure .NET IO classes map to right network storage by name. Hence change of hosts during deployment.

@vasily-kirichenko
Copy link
Contributor

I think it's something with access rights.

@dzmitry-lahoda
Copy link
Author

Not sure how type providers work, but can FileSystem<"C:/Windows/System32/drivers/"> run in one rights, but when I type Windows.etc in VS 2015 editor to be under other rights?

@dzmitry-lahoda
Copy link
Author

Ensured hidden and read only are not applied to etc and its content.

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