Changeset 939


Ignore:
Timestamp:
Jan 21, 2009, 8:25:08 AM (13 years ago)
Author:
Nicklas Nordborg
Message:

References #127: Update to final release of Apache Mina FTP server

BASE files may have a null last-modified time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.ftp/trunk/src/net/sf/basedb/clients/ftp/BaseFtpFile.java

    r917 r939  
    2828import java.io.OutputStream;
    2929import java.util.ArrayList;
     30import java.util.Date;
    3031import java.util.List;
    3132
     
    206207  public long getLastModified()
    207208  {
    208     long time = 0;
    209     if (file != null)
    210     {
    211       time = file.getLastUpdate().getTime();
    212     }
    213     else if (directory != null)
    214     {
    215       time = System.currentTimeMillis();
    216     }
    217     return time;
     209    Date time = null;
     210    if (file != null) time = file.getLastUpdate();
     211    return time == null ? System.currentTimeMillis() : time.getTime();
    218212  }
    219213 
Note: See TracChangeset for help on using the changeset viewer.