16 Commits

Author SHA1 Message Date
Nyall Dawson
1608547066 Add utility function QgsFileUtils.renameDataset
Renames a dataset file, including all its associated sidecar
files (and optionally the .qmd/.qml sidecars)
2021-08-11 08:21:04 +10:00
Nyall Dawson
ee0c050bbf Add QgsFileUtils.sidecarFilesForPath function, which returns all
sidecar files which exist for a given file path
2021-08-10 12:52:34 +10:00
Nyall Dawson
711a615be3 Fix raises sphinx format 2021-06-25 10:50:04 +10:00
Nyall Dawson
4ff3f447dc Don't try to insert links in raises blocks in PyQGIS docs
These aren't formatted correctly if we do
2021-06-10 11:03:43 +10:00
Nyall Dawson
95c01cc93c Dox, enum class 2021-05-21 08:26:14 +10:00
Nyall Dawson
72a57b271f Add QgsFileUtils::pathIsSlowDevice to determine whether a file path
likely resides on a slow device (eg. a remote network location)
2021-05-21 08:26:14 +10:00
Nyall Dawson
e3061a8f51 Add method to determine the drive type for a file path
Supported on Windows builds only
2021-05-21 08:26:14 +10:00
Denis Rouzaud
ba8a445850 run sipify 2021-03-22 21:13:52 +01:00
Nyall Dawson
9ee235cfbd Spelling 2020-11-05 20:16:48 +10:00
Nyall Dawson
d51e752e04 Add utility function to extract wildcards from a filter string 2020-11-05 20:16:48 +10:00
Nyall Dawson
74722b350c Add utility to determine whether a certain file name matches a given file filter string 2020-11-04 18:49:11 +10:00
Alex
91563b8b88 auto layer finder 2019-11-20 08:12:39 -05:00
Nyall Dawson
635f8ad7ca Add QgsFileUtils::findClosestExistingPath to find the closest
existing folder match for a path

E.g. if \a path is "/home/user/projects/2018/P4343"
and "/home/user/projects" exists but no "2018" subfolder
exists, then the function will return "/home/user/projects".

(Suprisingly no existing Qt method for this!)
2018-06-22 10:45:00 +10:00
Nyall Dawson
f8bc97030b Remove extra space added before first line of docstring 2018-05-28 08:22:11 +10:00
Nyall Dawson
1c615c15cc More documentation compliance
Use Qt style "returns .." tense instead of "return ..", and lock
this in with a documentation compliance unit test
2018-05-25 15:09:00 +10:00
Denis Rouzaud
7df2593caf move auto generated sip file in dedicated folder 2018-05-14 10:23:37 -04:00