Changeset View
Changeset View
Standalone View
Standalone View
smb/kio_smb_browse.cpp
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Line(s) | 71 | { | |||
---|---|---|---|---|---|
113 | // readonlyness since the 90s and causes us to show readonly UI states when in fact | 113 | // readonlyness since the 90s and causes us to show readonly UI states when in fact | ||
114 | // the directory is perfectly writable. | 114 | // the directory is perfectly writable. | ||
115 | // https://bugs.kde.org/show_bug.cgi?id=414482 | 115 | // https://bugs.kde.org/show_bug.cgi?id=414482 | ||
116 | // | 116 | // | ||
117 | // Should we ever want to parse desktop.ini like we do .directory we'd only want to when a | 117 | // Should we ever want to parse desktop.ini like we do .directory we'd only want to when a | ||
118 | // dir is readonly as per the above microsoft support article. | 118 | // dir is readonly as per the above microsoft support article. | ||
119 | // Also see: | 119 | // Also see: | ||
120 | // https://docs.microsoft.com/en-us/windows/win32/shell/how-to-customize-folders-with-desktop-ini | 120 | // https://docs.microsoft.com/en-us/windows/win32/shell/how-to-customize-folders-with-desktop-ini | ||
121 | udsentry.fastInsert(KIO::UDSEntry::UDS_ACCESS, -1); | | |||
122 | | ||||
123 | udsentry.fastInsert(KIO::UDSEntry::UDS_FILE_TYPE, st.st_mode & S_IFMT); | 121 | udsentry.fastInsert(KIO::UDSEntry::UDS_FILE_TYPE, st.st_mode & S_IFMT); | ||
124 | udsentry.fastInsert(KIO::UDSEntry::UDS_SIZE, st.st_size); | 122 | udsentry.fastInsert(KIO::UDSEntry::UDS_SIZE, st.st_size); | ||
125 | udsentry.fastInsert(KIO::UDSEntry::UDS_MODIFICATION_TIME, st.st_mtime); | 123 | udsentry.fastInsert(KIO::UDSEntry::UDS_MODIFICATION_TIME, st.st_mtime); | ||
126 | udsentry.fastInsert(KIO::UDSEntry::UDS_ACCESS_TIME, st.st_atime); | 124 | udsentry.fastInsert(KIO::UDSEntry::UDS_ACCESS_TIME, st.st_atime); | ||
127 | // No, st_ctime is not UDS_CREATION_TIME... | 125 | // No, st_ctime is not UDS_CREATION_TIME... | ||
128 | } | 126 | } | ||
129 | 127 | | |||
130 | return cacheStatErr; | 128 | return cacheStatErr; | ||
▲ Show 20 Lines • Show All 587 Lines • Show Last 20 Lines |