28 Commits

Author SHA1 Message Date
Ingo Karkat 6c2f4b5c18 Add ingo#fs#path#split#PathAndName() 2017-05-26 17:56:19 +02:00
Ingo Karkat bd70c51e87 Add ingo#str#EndsWith() variant of ingo#fs#path#split#Contains() 2017-05-26 17:56:17 +02:00
Ingo Karkat ad6359092d 2017-05-26 17:54:38 +02:00
Ingo Karkat 5bc3d8c446 Add ingo#fs#traversal#FindFirstContainedInUpDir() 2017-05-26 17:51:14 +02:00
Ingo Karkat b7e8b44bba Use ingo#compat#globpath() 2017-05-26 17:51:09 +02:00
Ingo Karkat 0c9d796803 file creation 2017-05-26 17:50:42 +02:00
Ingo Karkat fabce68990 Add ingo#fs#path#split#Contains() 2017-05-26 17:49:59 +02:00
Ingo Karkat be1408ef50 Add optional a:templateForNewBuffer argument to ingo#fs#tempfile#Make() and ensure (by default) that the temp file isn't yet loaded in a Vim buffer (which would generate "E139: file is loaded in another buffer" on the usual :write, :saveas commands) 2017-05-26 17:37:07 +02:00
Ingo Karkat 47b2c93e42 Use new ingo#compat#glob() 2017-05-26 17:37:05 +02:00
Ingo Karkat 0f5a950dca file creation 2017-05-26 17:34:13 +02:00
Ingo Karkat db547e9d46 Use operating system detection functions from ingo/os.vim 2017-05-26 17:33:59 +02:00
Ingo Karkat 6a7e2e8b77 Use operating system detection functions from ingo/os.vim 2017-05-26 17:31:58 +02:00
Ingo Karkat 55091c6af5 Add ingo#fs#path#Exists() 2017-05-26 17:31:56 +02:00
Ingo Karkat 8c21bb2f08 Add ingo#fs#path#IsCaseInsensitive() 2017-05-26 17:29:06 +02:00
Ingo Karkat 7e1efba37e Add special normalization to "C:/" on Cygwin via ":/" path separator argument 2017-05-26 17:29:04 +02:00
Ingo Karkat 69b71d971d ingo#fs#path#Normalize()
Don't normalize to Cygwin /cygdrive/x/... when the chosen path separator is "\". This would result in a mixed separator style that is not actually handled.
2017-05-26 17:28:47 +02:00
Ingo Karkat 63e32704d5 2017-05-26 17:28:15 +02:00
Ingo Karkat 735a867234 ingo#fs#path#Normalize(): Also ensure uppercase C: drive letter
ingo#fs#path#Normalize(): Also convert between the different D:\ and /cygdrive/d/ notations on Windows and Cygwin.
2017-05-26 17:28:03 +02:00
Ingo Karkat b4b8b6d434 Use operating system detection functions from ingo/os.vim 2017-05-26 17:26:25 +02:00
Ingo Karkat 953a25cf6c file creation 2017-05-26 17:26:22 +02:00
Ingo Karkat 0da6f14a10 Extract ingo#fs#path#IsUncPathRoot() 2017-05-26 17:26:20 +02:00
Ingo Karkat ce064debc9 Add ingo#fs#traversal#FindDirUpwards() 2017-05-26 17:26:17 +02:00
Ingo Karkat 49276759f6 Make a:path argument optional and default to the current buffer's directory (as all existing clients use that) 2017-05-26 17:25:12 +02:00
Ingo Karkat aca9a59356 Add prefix to exception thrown from ingo#fs#path#GetRootDir() 2017-05-26 17:25:09 +02:00
Ingo Karkat d4a0056387 2017-05-26 17:25:09 +02:00
Ingo Karkat b11c20f788 file creation 2017-05-26 17:25:09 +02:00
Ingo Karkat 8c80301589 Add ingo#fs#path#Equals()
Minor: Remove duplication.
2017-05-26 17:15:50 +02:00
Ingo Karkat 4a3a18ba52 file creation 2017-05-26 17:15:03 +02:00