Changeset View
Changeset View
Standalone View
Standalone View
smb/kio_smb_dir.cpp
Show First 20 Lines • Show All 598 Lines • ▼ Show 20 Line(s) | 598 | #ifdef HAVE_UTIME_H | |||
---|---|---|---|---|---|
599 | // set modification time | 599 | // set modification time | ||
600 | const QString mtimeStr = metaData( "modified" ); | 600 | const QString mtimeStr = metaData( "modified" ); | ||
601 | if (!mtimeStr.isEmpty() ) { | 601 | if (!mtimeStr.isEmpty() ) { | ||
602 | QDateTime dt = QDateTime::fromString( mtimeStr, Qt::ISODate ); | 602 | QDateTime dt = QDateTime::fromString( mtimeStr, Qt::ISODate ); | ||
603 | if ( dt.isValid() ) { | 603 | if ( dt.isValid() ) { | ||
604 | struct utimbuf utbuf; | 604 | struct utimbuf utbuf; | ||
605 | utbuf.actime = st.st_atime; // access time, unchanged | 605 | utbuf.actime = st.st_atime; // access time, unchanged | ||
606 | utbuf.modtime = dt.toTime_t(); // modification time | 606 | utbuf.modtime = dt.toTime_t(); // modification time | ||
607 | smbc_utime( dstUrl.toSmbcUrl(), &utbuf ); | 607 | smbc_utime( dstOrigUrl.toSmbcUrl(), &utbuf ); | ||
608 | } | 608 | } | ||
609 | } | 609 | } | ||
610 | #endif | 610 | #endif | ||
611 | 611 | | |||
612 | // We have done our job => finish | 612 | // We have done our job => finish | ||
613 | finished(); | 613 | finished(); | ||
614 | } | 614 | } | ||
615 | 615 | | |||
▲ Show 20 Lines • Show All 169 Lines • Show Last 20 Lines |