This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

path conversion window to linux

 
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