I'm wondering if there is any way to rename a TPath.
Iv'e tried:
TPath is TrueZip by the way.zip.renameTo(new File("test.txt"))'
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
I'm wondering if there is any way to rename a TPath.
Iv'e tried:
TPath is TrueZip by the way.zip.renameTo(new File("test.txt"))'
What class is the zip variable? That is needed to be able to research the renameTo() method.
Is a TPath file a normal file as far as OS commands like rename and delete are concerned? Its contents are not important to how the file is named, copied or deleted.
If you don't understand my answer, don't ignore it, ask a question.
TPath is a way to access zips as if they were directories.
Most methods are the same but not the renameTo().
Do you know the method?
What class is the zip variable? It a member of that class. Look in the class's API doc.Do you know the method?
I have never heard of TPath.
If you don't understand my answer, don't ignore it, ask a question.
Sorry!
I forgot to tell you that TPath is an external jar.
Also, I don't know why you mean by what class is the zip variable.
Post the code where zip is defined.Also, I don't know why you mean by what class is the zip variable.
With the statement: String zip = "zip";
zip's class would be String.
What does the name of a jar file have to do with the problem? It's the contents of jar file on the classpath that is important.TPath is an external jar.
If you don't understand my answer, don't ignore it, ask a question.