| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Fix filepath.dir | Jeroen van Rijn | 19 hours | 1 | -16/+4 |
| | | |||||
| * | Fix #6265 | Jeroen van Rijn | 3 days | 1 | -4/+11 |
| | | |||||
| * | core:os -> core:os/old && core:os/os2 -> core:os | Jeroen van Rijn | 6 days | 1 | -2/+2 |
| | | |||||
| * | Link some more of filepath to os2 | Jeroen van Rijn | 7 days | 1 | -125/+18 |
| | | |||||
| * | More conflicts during rebase | Jeroen van Rijn | 7 days | 1 | -158/+28 |
| | | |||||
| * | Add more `filepath` to `os2` | Jeroen van Rijn | 7 days | 1 | -93/+11 |
| | | |||||
| * | Use clean paths to calculate volumes | gingerBill | 2026-01-28 | 1 | -2/+2 |
| | | |||||
| * | Fix absolute and volume name checks on Windows | gingerBill | 2026-01-28 | 1 | -20/+51 |
| | | |||||
| * | Further overhaul of package line comments. | Jeroen van Rijn | 2025-10-09 | 1 | -1/+1 |
| | | |||||
| * | More package lines. | Jeroen van Rijn | 2025-10-09 | 1 | -2/+2 |
| | | |||||
| * | update core:filepath's clean, join and split_list to return optional ↵ | jason | 2024-08-16 | 1 | -25/+30 |
| | | | | | Allocator_Errors | ||||
| * | Fix loads of indentation issues with mixing spaces and tabs | gingerBill | 2024-06-29 | 1 | -1/+1 |
| | | |||||
| * | Fix filepath.rel allocation behaviour | gingerBill | 2024-02-06 | 1 | -16/+11 |
| | | |||||
| * | Use `or_break` and `or_continue` where appropriate in the core library | gingerBill | 2023-09-30 | 1 | -3/+2 |
| | | |||||
| * | Disallow `for in` in favour of `for _ in` | gingerBill | 2023-08-08 | 1 | -1/+1 |
| | | |||||
| * | Add docs to `core:path/filepath` | gingerBill | 2023-02-28 | 1 | -5/+44 |
| | | |||||
| * | [path/filepath] Add file stem and long-extension procedures | Tetralux | 2022-04-23 | 1 | -9/+124 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds stem(), short_stem(), and long_ext(); also adds doc-comments to base() and ext(). The 'stem' is usually 'the name' of the file; the basename without the file extension. To this end, this adds stem(), which is such that: stem(path) + ext(path) = base(path) However, 'file extension' has two different meanings to what constitutes it! > What is the extension of: 'name.tar.gz' ? Colloquially, you would likely think of it as 'a tarball' - which you might think is '.tar.gz'. But, if you're writing code to process a file of this type, you would first treat it as a Gzip file, and then treat the result as a TAR file - i.e: '.gz' ... _followed by_ '.tar'. ext() returns '.gz' here, since that is the most-immediate format that you would need to use to decode it; it would be a Gzip stream. Sometimes though, you do actually want to consider these longer file extensions. Perhaps you're extracting a tarball, and what to know what to call the intermediate tar file; perhaps you want to check to see if this file is a tarball, or just a Gzip file; or maybe you just want 'the name' of the file, and not this "strange 'name-and-part-of-the-extension' thing". So, this also adds short_stem() and long_ext(), such that: short_stem(path) + long_ext(path) = base(path) Thus, we can use either, but the most immediately-useful one is the easiest to reach for: stem('name.tar.gz') -> 'name.tar' ext('name.tar.gz') -> '.gz' short_stem('name.tar.gz') -> 'name' long_ext('name.tar.gz') -> '.tar.gz' These procedures are identical to their counterparts when the path only has a simple extension: stem('name.txt') -> 'name' ext('name.txt') -> '.txt' short_stem('name.txt') -> 'name' long_ext('name.txt') -> '.txt' | ||||
| * | [windows] Fix leak in `glob`. | Jeroen van Rijn | 2022-03-29 | 1 | -1/+1 |
| | | |||||
| * | Fix issue #1537 "filepath.split_list requires a trailing separator" | gitlost | 2022-03-23 | 1 | -2/+8 |
| | | | | | | | Does `make()` with `count + 1` and appends final component (note a trailing separator will now result in an empty final component) Adds test "tests/core/path/filepath/test_core_filepath.odin" | ||||
| * | Memory Leak | Patric Dexheimer | 2022-02-20 | 1 | -2/+3 |
| | | | | `dir` will leak memory if u use it with allocators that don´t care in freeing the memory at the end ( like arenas or the temp_allocator ) , because `strings.clone` and `strings.concatenate` are not using the passed allocator. | ||||
| * | Convert `ODIN_OS` and `ODIN_ARCH` to use enums rather than use strings | gingerBill | 2022-01-20 | 1 | -2/+2 |
| | | |||||
| * | Remove unneeded semicolons from the core library | gingerBill | 2021-08-31 | 1 | -145/+145 |
| | | |||||
| * | Core library clean up: Make range expressions more consistent and replace ↵ | gingerBill | 2021-06-14 | 1 | -1/+1 |
| | | | | | uses of `..` with `..=` | ||||
| * | Fix linalg.transpose | gingerBill | 2021-06-03 | 1 | -1/+0 |
| | | |||||
| * | Or did it?! | gingerBill | 2021-06-02 | 1 | -2/+2 |
| | | |||||
| * | FINALLY fix `lazy_buffer_destroy` | gingerBill | 2021-06-02 | 1 | -2/+2 |
| | | |||||
| * | Fix filepath.lazy_buffer | gingerBill | 2021-06-02 | 1 | -2/+3 |
| | | |||||
| * | Clean up filepath.lazy_buffer memory leak | gingerBill | 2021-06-02 | 1 | -1/+7 |
| | | |||||
| * | Fix accidental removal of newline | jockus | 2021-05-27 | 1 | -0/+1 |
| | | |||||
| * | Remove accidental core:fmt include in path/filepath | jockus | 2021-05-27 | 1 | -1/+0 |
| | | |||||
| * | Fix deleting substring in filepath.release | jockus | 2021-05-27 | 1 | -8/+8 |
| | | |||||
| * | Update package os for package path/filepath support on macOS | gingerBill | 2021-02-27 | 1 | -24/+77 |
| | | |||||
| * | Keep -vet happy | gingerBill | 2020-12-14 | 1 | -2/+1 |
| | | |||||
| * | Merge pull request #752 from powerc9000/patch-4 | gingerBill | 2020-10-24 | 1 | -2/+2 |
| |\ | | | | | Fix a few bugs in path based code. | ||||
| | * | Fix a few bugs in path based code. | Clay Murray | 2020-10-07 | 1 | -2/+2 |
| | | | | | | | Trying to use path.dir and path.rel I found these two issues with the implementation. | ||||
| * | | Improve default temp allocator; Fix filepath.abs behaviour on Windows | gingerBill | 2020-10-13 | 1 | -3/+3 |
| |/ | |||||
| * | Add some comments to explain what the differences between packages path and ↵ | gingerBill | 2020-09-26 | 1 | -0/+2 |
| | | | | | path/filepath | ||||
| * | Update packages os, path, and filepath | gingerBill | 2020-09-26 | 1 | -8/+152 |
| | | |||||
| * | Add `package path/filepath`; Add `os.stat` for windows (TODO: unix) | gingerBill | 2020-09-25 | 1 | -0/+199 |