M
Matt Royer
Hi,
I'm trying to open a file that is on a mapped network drive. I assigned
the letter M for the drive and everything works correctly. I have the
right access and everything.
This is the code I have: f = File.open("M:/38/56/890001000385646.xml")
The rest of my code works when I copy that file to a local folder named
"files", point to it (f = File.open("/files/890001000385646.xml"), and
run the program (I'm using Nokogiri to read the attributes from the
file).
So, I might be missing the syntax of accessing a file across the
network.
Here's the error I receive:
-----
noko-ono.rb:3:in `initialize': No such file or directory -
m:/38/56/890001000385
646.xml (Errno::ENOENT)
from noko-ono.rb:3:in `open'
from noko-ono.rb:3
-----
Anyone know how to write this in the correct syntax?
Thanks in advance,
--Matt
I'm trying to open a file that is on a mapped network drive. I assigned
the letter M for the drive and everything works correctly. I have the
right access and everything.
This is the code I have: f = File.open("M:/38/56/890001000385646.xml")
The rest of my code works when I copy that file to a local folder named
"files", point to it (f = File.open("/files/890001000385646.xml"), and
run the program (I'm using Nokogiri to read the attributes from the
file).
So, I might be missing the syntax of accessing a file across the
network.
Here's the error I receive:
-----
noko-ono.rb:3:in `initialize': No such file or directory -
m:/38/56/890001000385
646.xml (Errno::ENOENT)
from noko-ono.rb:3:in `open'
from noko-ono.rb:3
-----
Anyone know how to write this in the correct syntax?
Thanks in advance,
--Matt