🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #823

java.io.File network file access

#823
From: Zak
Date: Fri, 30 Aug 2002 15:18
16 lines
1564 bytes
I'm trying to access a file on the network from a java class. Here is a
simple example:

java.io.File f = new java.io.File("w:\");
System.out.println(f.canRead());
System.out.println(f.isDirectory()):
java.io.File[] files = f.listFiles();

in this case the W:\ drive is mapped on the server.  canRead() returns false
isDirectory return false and
files is null

I can use this same code to access any partition on the server but can't
access anything on the network whether using a mapped drive or the UNC
\\ntserver-5 .  Is this a permissions problem or something else.  I don't
get any error.
Technical Details
Message-ID: <3d6f8ccf$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!sn-xit-04!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,8ca1abe1999c4a14,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-08-30 08:40:06 PST
Reply-To: "Zak" <zaks@questsoftware.com>
From: "Zak" <zaks@questsoftware.com>
Newsgroups: borland.public.jbuilder.java.api
Subject: java.io.File network file access
Date: Fri, 30 Aug 2002 11:18:40 -0400
Lines: 18
Organization: Quest
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 12.37.120.99
Message-ID: <3d6f8ccf$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1030720719 12.37.120.99 (30 Aug 2002 08:18:39 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!sn-xit-04!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mail