Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

path conversion window to linux  RSS feed

 
arjun rampal
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I have application.properties file which contains the path name of file like this
file.path=D:\\Data where data is any folder

Now application is going to be instaalled on red hat linux

Now the same file I need to be in
/home/webadrep/Data where again data is folder

now the question is a)what should i write for file.path now.
thanxs and regards
 
Scott Cook
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
does
file.path="/home/webadrep/Data";
work?

unix filepaths start at "/" as the root directory, instead of the
drive name ("D:").
 
arjun rampal
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!