LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-24-2009, 07:48 AM   #1
sbzenith
LQ Newbie
 
Registered: May 2009
Posts: 2

Rep: Reputation: 0
Not able to read list of files in folder from java


I am able to read files in the folder if i login thru ssh directly. I can see the folder and files permission as 775. But when I try to read those files from the java code getting null value in java. I can see folderObj.canRead() and folderObj.canWrite() returns false. Anyone has any clue on this? Thanks in advance

Balaji
 
Old 05-25-2009, 04:47 PM   #2
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Code please, though you ought really to have asked this in one of the programming forums.
 
Old 05-26-2009, 02:50 AM   #3
sbzenith
LQ Newbie
 
Registered: May 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks James. I found out the issue and solved it. Yes, you are right. We are taking input folder name from property file. There was few spaces after the folder name in the property file. In windows, it was working fine. But linux i think, it treated that as the part of the folder name. We tried many ways and finally found the issue.

Thanks a lot for your effort.

Balaji
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Downloading a list of files from a remote server using a list ralcocer Programming 2 02-11-2009 02:02 PM
Read list of files as arguments in a script garr0n Programming 10 10-25-2007 11:19 PM
Utility Needed - list folder tree and files in text file Optiker Linux - Software 21 11-17-2006 03:46 PM
How to automatically move files from one folder into another folder? xmrkite Linux - Software 6 11-05-2006 11:39 AM
Display a list of files in a folder in apache Snorideguy Linux - Software 4 02-26-2004 02:05 PM


All times are GMT -5. The time now is 08:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration