Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-01-16Cleanup/refactor: Add new BLI_string_util.Bastien Montagne
Things like `BLI_uniquename` had nothing, but really nothing to do in BLI_path_util files! Also, got rid of length limitation in `BLI_uniquename_cb`, we can use alloca here to avoid overhead of malloc while keeping free size (within reasonable limits of course).
2016-10-25API: Fix LinksAaron Carlisle
Self-explanatory. to find broken links run `sphinx-build -b linkcheck sphinx-in sphinx-out` Reviewers: mont29 Tags: #bf_blender, #python, #infrastructure:_websites Differential Revision: https://developer.blender.org/D2297
2016-06-27Docs: arg namesCampbell Barton
2016-05-03Cleanup: no need to cast for pointer comparisonCampbell Barton
2015-11-27Fix (unreported) broken BLI_join_dirfile() in some cases on Windows.Bastien Montagne
That function was epic failing in case trying to join '//' and 'foo.blend', would give '//\foo.blend'... Now check for both SEP and ALTSEP!
2015-10-18Fix T46531: Cannot use % in filenames.Bastien Montagne
Same case as with space char really, one should not use those special chars in filenames, but they are globally supported by all current FS/OS, so no real reason to enforce that behvior on users here. To be backported to 'a' release.
2015-10-17Cleanup: warningsCampbell Barton
- remove NULL checks for args already set as ATTR_NONNULL. - double promotion.
2015-10-17Cleanup: BLI_path commentsCampbell Barton
2015-10-17Cleanup: remove unused BLI_string_to_utf8Campbell Barton
2015-10-15Fix crash pressing +/- in file-selectorCampbell Barton
Filenames over 128 chars would crash. Move BLI_newname into file_ops, this was only used in one place and isn't all that re-usable. Also remove special behavior for 4 digits.
2015-10-15Fix T45900: Allow again white spaces in file names.Bastien Montagne
Should probably be added to 'a' release, should we do one...
2015-10-08BLI_path api, minor changes to CWD handlingCampbell Barton
- BLI_current_working_dir's return value must be checked, since it may fail. - BLI_current_working_dir now behaves like getcwd, where a too-small target will return failure. - avoid buffer overrun with BLI_path_cwd, by taking a maxlen arg.
2015-10-07Cleanup: spellingCampbell Barton
2015-09-09Fix T46056: User Preferences-> install from File freezes Blender.Bastien Montagne
Own stupid error in recent fix for buffer overflow in `BLI_testextensie_glob()`... Also found & fixed another potential buffer overflow in this func.
2015-09-07Fix beautiful textbook case of string overflow in `BLI_testextensie_glob`...Bastien Montagne
2015-07-14BLI_path_utils: fix/enhance BLI_filename_make_safe(), add BLI_path_make_safe().Bastien Montagne
BLI_filename_make_safe had several issues: * Would replace all dots ('.'), not a great idea since it would break extensions. * Was not checking for 'control' ASCII chars (though unlikely, better to be safe here). * Win32 only: was not checking for forbidden names (con, aux, ltp0, com0, etc.). New BLI_path_make_safe() simply checks each path's item with BLI_filename_make_safe().
2015-06-30Cleanup: move BLI_char_switch into BLI_stringCampbell Barton
2015-06-06CleanupCampbell Barton
2015-06-04New "use placeholders" feature of the sequencer did not detect correctAntony Riakiotakis
filenames. Added BLI_path utility functions to decompose a path name and extract the frame number. It should be useful in autocollapse feature as well
2015-06-04Fix buffer overrun searching program path on win32Campbell Barton
2015-06-02Simplify Win32 extension checkCampbell Barton
2015-05-05Prefer name 'program' over 'binary'Campbell Barton
binary-search is confusing!
2015-05-05BLI_path: add PATH search utility functionsCampbell Barton
2015-04-08Fix T44235: UNC Path Fails in open.Bastien Montagne
Here again, stat on '\\MYSERVER\foo\..' does not work... Anyway, we can handle this in a much much simpler way using BLI_access and BLI_parent_dir...
2015-02-13Make modifier_unique_name return whether modifier was renamed or notSergey Sharybin
2015-02-06cleanup: styleCampbell Barton
2015-01-26Cleanup: current/parent paths: add helpers in BLI_path_utils.Bastien Montagne
Also, avoid calling ugly strcmp with '.' or '..', making direct char checks is much cheaper here!
2015-01-26Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).Bastien Montagne
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)' and 'strcmp(foo, bar) == 0' in several places...
2015-01-16Fix compilation error with strict compiler rulesSergey Sharybin
2015-01-16Fix T43275: Crash on Render when using 'save buffer' and render layer name ↵Bastien Montagne
contains a '/' Added a new BLI_path_utils func, `BLI_filename_make_safe()`, which for now simply replaces unsafe chars for paths (like '\' or '/') by an underscore...
2015-01-04Partial fix for T43113: Filebrowser: Empty folders do not contain go back arrow.Bastien Montagne
Do not allow going into un-readable directories at all. Note we might want to reflect that 'state' in UI for users too, but that will be for later. Also, not quite sure this fix the windows case, will have to start my VM... :/
2014-12-28Fix buffer overrun calculating unique namesCampbell Barton
2014-12-01Cleanup: hopefully last int->bool one in this area!Bastien Montagne
2014-12-01Fix T42588: Absolute paths not cleaned on win32Campbell Barton
Making paths absolute would leave in "\..\" part on windows.
2014-11-30Cleanup: warnings & spaceCampbell Barton
2014-11-23Refactor: BLI_path_util (split out app directory access)Campbell Barton
This module is intended for path manipulation functions but had utility functions added to access various directories.
2014-10-29Cleanup: warnings, typosCampbell Barton
2014-09-22Fix T41891: Alt+S can't save imageCampbell Barton
win32 BLI_path_abs expanded empty strings into "C:\\", which made BLI_exists succeed (quite confusing). Now match behavior on *nix.
2014-08-01OSX/scons: Change Blender bundle datastructures + referennces to match the ↵Jens Verwiebe
upcoming codesigning needs - i used deprecated rules up to now which will break in OSX > 10.9.5 and 10.10 > dp4 - todo: adapt cmake due it will break with this commit
2014-07-30BLI_path_utils: rename BLI_clean -> BLI_path_native_slashCampbell Barton
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-06-24Fix compilation on OSX after own rB414c70435dcd...Bastien Montagne
Sigh, why can't all unix have same includes? :/
2014-06-23T39690: Modifications to Blender's 'temp dir' system.Bastien Montagne
Current temporary data of Blender suffers one major issue - default 'temp' dir on Windows is never automatically cleaned up, and can end being quite big when used by Blender, especially when we have to store per-process data (using getpid() in file names). To address this, this patch: * Divides tempdir paths in two, one for 'base' temp dir (the same as previous unique tempdir path), the other is a mkdtemp-generated sub-dir, specific to each Blender instance. * Only uses base tempdir when we need some shallow persistance accross Blender sessions - and we always reuse the same filename (quit.blend...) or generate small file (crash reports...). * Uses temp sub-dir for heavy files like pointcache or renderEXRs (Save Buffer option). * Erases temp sub-dir on quit or crash. To get this working it also adds a working 'recursive delete' to BLI_delete() under Windows. Note that, as in current code, the 'recover render result' hack-feature that was possible with SaveBuffer option is still removed. A real renderresult cache feature will be added soon, though. Reviewers: campbellbarton, brecht, sergey Reviewed By: campbellbarton, sergey CC: sergey Differential Revision: https://developer.blender.org/D531
2014-05-18Comment unused BLI_rebase_pathCampbell Barton
2014-05-18Fix BLI_cleanup_path: '.' at the start of a pathCampbell Barton
On windows "." was replaced with the root directory. On other systems any path starting with a '.' would be replaced with "/" This was added for the file selector only, so better handle this in the file selector (though it looks not to be needed).
2014-05-14Code cleanup: doxy commentsCampbell Barton
2014-05-07Code cleanup: spelling/indentationCampbell Barton
2014-05-03BLI_path_suffix() - new path util functon to add a suffix to a filepath ↵Dalai Felinto
(before the extension) Revision: D465 Reviewd by Campbell Barton
2014-05-01Include removal gave problems with windows, ifdef some back in for windows onlyCampbell Barton
2014-05-01Revert "Fix msvc 2013 compiler errors after the ingenious cleanup in ↵Campbell Barton
4ca67869cc7a." This reverts commit a47a4ef82f37428d391cc14a30fa611d6714e71d.