Re: SmbFile reports incorrect file dates
Michael B Allen <[email protected]> Wed, 11 Jun 2014 22:18:27 -0400
| Newsgroups | gmane.network.samba.java |
|---|---|
| Message-ID | <CAGMFw4g8kFOtsyN-NFSCFpAaSGvoQLD_cYsVYZmJt9R8zDGFMg@mail.gmail.com> |
On Wed, Jun 11, 2014 at 8:26 PM, Simon van der Sluis <[email protected]> wrote: > When attempting to get the file date from a SmbFile it always returns 0. > Connecting to the same smb share using finder in OSX returns the correct files > dates. <snip> > SmbFile smbFile = SmbFileUtil.connect("smb://192.168.56.101/share/fie.txt", Hi Simon, Is the above path with 'fie.txt' a type? Are you checking if the file exists() first? If it does not, it might very well return 0. Mike -- Java Active Directory Integration http://www.ioplex.com/