- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: File versioning using the FileObject in Java f...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2006 02:47 AM
тАО07-19-2006 02:47 AM
File versioning using the FileObject in Java for OpenVMS
Ex: temp.text (is what I see)
I would like to get:
TEMP.TXT;1
TEMP.TXT;2
I looked through the User Guide: SDK v 1.4.x for OpenVMS and didn't really see anything pertaining to file versioning. Or am I even headed down the correct path? If anyone could provide some direction I would greatly appreciate it. Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2006 03:37 AM
тАО07-19-2006 03:37 AM
Re: File versioning using the FileObject in Java for OpenVMS
But did you try specifying temp.txt.* ?
(or is it text ?)
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2006 04:00 AM
тАО07-19-2006 04:00 AM
Re: File versioning using the FileObject in Java for OpenVMS
Let's say I have the following files in directory TEMPDIR:
TEMP.TXT;1 submitted at 1pm
TEMP.TXT;2 submitted at 2pm
When I use the FileObject provided by java and look in TEMPDIR, the java will return me the most recent version of the file e.g. temp.txt (the 2pm version). But I would like to retrieve both versions of the file. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2006 10:46 AM
тАО07-19-2006 10:46 AM
Re: File versioning using the FileObject in Java for OpenVMS
Are you passing to FileObject any part of the file name ?
As Wim said, could you specify temp.txt;* ?
Or are you parsing the returned file list looking for the file name you want ?
Does this directory hold ONLY those files and no others ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2006 01:20 AM
тАО07-20-2006 01:20 AM
Re: File versioning using the FileObject in Java for OpenVMS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2006 01:26 AM
тАО07-20-2006 01:26 AM
Re: File versioning using the FileObject in Java for OpenVMS
I actually retrieve an absolut path from the FileObject. I can then check to see if that is a directory, and if it is I can turn around and retrieve the directories (file Objects) from that object. And No, no parsing is done, I didn't want to have to do that if I could just retrieve. I imagine it could get pretty messy if I start parsing files accross multiple platforms.
To see what I am talking about check out the Class file (java.io.File) in Java's API.
Thanks again!