Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

get the paths  RSS feed

 
Aya Muhannad
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,I have a code that uploads files in server after browsing folders and files then get the paths of files but I have a problem in getting the paths


list1 must has paths that I want but I do not get the paths of upload files

can you help me in getting the paths
 
Swastik Dey
Rancher
Posts: 1812
15
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean lis1 is empty?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You seem to assume that File.toString returns a path - I'm pretty sure it doesn't, but you should check its javadocs. From what I understand, you probably want to use the File.getAbsolutePath method.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!