Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add `walkPattern` to return both files and directories | Joey Payne | 2016-06-17 | 1 | -10/+46 |
| | | | | | Also added `walkDirs` to walk only directories based on the pattern specified. | ||||
* | Fix #4280: os.walkFiles yields directories on Unix systems | Joey Payne | 2016-06-16 | 1 | -1/+4 |
| | | | | Files were not properly checked to actually be files after globbing. | ||||
* | remove fauly fix for windows error being overwritten | Jacek Sieka | 2016-06-12 | 1 | -3/+2 |
| | |||||
* | fix errno in os.nim | Jacek Sieka | 2016-06-08 | 1 | -2/+5 |
| | |||||
* | remove system/ansi_c include from os | Jacek Sieka | 2016-06-05 | 1 | -1/+15 |
| | |||||
* | fix types of ansi_c/sysio to more closely match C ABI | Jacek Sieka | 2016-06-05 | 1 | -2/+2 |
| | | | | | also fixes some instances of using C library functions when there are nim alternatives available | ||||
* | Deprecate timeToTimeInfo, add str->time procs | coffeepots | 2016-04-06 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | * depreciate timeToTimeInfo, add str->time procs initTime allows creating times from strings. initTimeFromStr offers a default format string compatible with $Time. timeToTimeInterval changed to work properly. * Spell {.deprecated.} correctly * deprecated timeToTimeInfo, removed initTime procs Is it even worth depreciating timeToTimeInfo rather than just removing it, considering it's just wrong and we have getLocalTime and getGMTime that actually work? Also, if I'm renaming timeToTimeInfo -> toTimeInfo etc, isn't the deprecated tag kind of redundant? * Updated names for toTime and toTimeInterval procs * Added type to toTime template This should allow compilation of os.nim now that toTime is defined in times.nim. * Updated toTime template to use {.gensym.} Local templates default to 'bind' semantics, not 'gensym'. This was causing a failure to 'see' the local toTime template. | ||||
* | Better additionalInfo OSError message, ref #2650. | Dominik Picheta | 2016-04-04 | 1 | -1/+1 |
| | |||||
* | Use /proc/self/exe on NetBSD | def | 2016-03-07 | 1 | -1/+1 |
| | |||||
* | Better getAppFilename() heuristic for OpenBSD and NetBSD | def | 2016-03-07 | 1 | -16/+9 |
| | | | | | | Using the environment variable _ is completely broken and makes it impossible to build even nimble. After calling `sh` (ksh) on OpenBSD, `_` is wrongly set to `/bin/sh` and all subprocess calls to Nim fail. | ||||
* | Avoid using private _NSGetEnviron API on iOS. | Yuriy Glukhov | 2016-03-05 | 1 | -1/+1 |
| | |||||
* | Use defer in iterator to avoid possible leaks. Fixes #3802 | Pavel Roschin | 2016-02-02 | 1 | -4/+4 |
| | |||||
* | fixes memory leak for getAppFilename on Windows | Araq | 2015-11-26 | 1 | -1/+1 |
| | |||||
* | os.walkDir is available at compile time | Araq | 2015-11-10 | 1 | -41/+49 |
| | |||||
* | os.walkDir supports yielding relative paths | Araq | 2015-09-29 | 1 | -4/+8 |
| | |||||
* | split os into os and ospaths parts; ospaths is available for NimScript; ↵ | Araq | 2015-09-04 | 1 | -524/+2 |
| | | | | better NimScript support | ||||
* | Better docs for os.getCreationTime(). Fixes #1058. | Dominik Picheta | 2015-08-23 | 1 | -2/+4 |
| | |||||
* | workaround windows 'findNextFile' bug | Araq | 2015-08-16 | 1 | -1/+8 |
| | |||||
* | added os.tailDir proc | Araq | 2015-07-12 | 1 | -0/+14 |
| | |||||
* | Do not use errno on Windows in the ``os`` module. | Dominik Picheta | 2015-07-11 | 1 | -1/+1 |
| | |||||
* | Use raiseOSError with additionalInfo parameter from devel | Sloane Simmons | 2015-07-04 | 1 | -3/+3 |
| | |||||
* | Remove expandTilde forward declaration | Dominik Picheta | 2015-07-03 | 1 | -19/+17 |
| | |||||
* | True is true | Araq | 2015-06-30 | 1 | -3/+3 |
| | |||||
* | Implements ``os.expandSymlink``. Ref #3015. | Dominik Picheta | 2015-06-29 | 1 | -0/+16 |
| | |||||
* | much better error message if an exe cannot be found | Araq | 2015-06-29 | 1 | -2/+5 |
| | |||||
* | fixed #1985 | Vlad | 2015-06-14 | 1 | -1/+3 |
| | |||||
* | stdlib: don't use deprecated symbols | Araq | 2015-06-04 | 1 | -37/+37 |
| | |||||
* | lib/pure/e-o - Dropped 'T' from types | pdw | 2015-06-04 | 1 | -18/+18 |
| | |||||
* | Fix behavior of os.getFileInfo() for symbolic links. | Reimer Behrends | 2015-05-13 | 1 | -2/+2 |
| | | | | | | The calls to lstat() and stat() were switched. As a result, links weren't followed for followLink == true and links were followed for followLink == false. | ||||
* | Excludes windows platfrom from $PATH tilde expansion. Refs #2358. | Grzegorz Adam Hankiewicz | 2015-03-17 | 1 | -1/+4 |
| | |||||
* | Expands tildes for entries in $PATH when looking for a binary. | Grzegorz Adam Hankiewicz | 2015-03-16 | 1 | -2/+4 |
| | |||||
* | Enables use of NSGetEnviron for osx binary compatibility. Refs #965. | Grzegorz Adam Hankiewicz | 2015-03-14 | 1 | -2/+2 |
| | |||||
* | Check that file passed to getFileInfo is not nil | def | 2015-03-10 | 1 | -0/+2 |
| | |||||
* | Use faster walkDir on BSDs | def | 2015-02-24 | 1 | -1/+1 |
| | |||||
* | Fall back to lstat() calls on unsupported filesystems | def | 2015-02-24 | 1 | -6/+10 |
| | |||||
* | Speed up walkDir significantly | def | 2015-02-24 | 1 | -3/+7 |
| | | | | | | We only know that this works on Linux and Mac OS X, so other systems use the POSIX conforming version still. This removed the lstat call, which is especially expensive on NFS filesystems for me. | ||||
* | Fix typos | Federico Ceratto | 2015-02-15 | 1 | -2/+2 |
| | |||||
* | Fix typos | Federico Ceratto | 2015-02-15 | 1 | -3/+3 |
| | |||||
* | fixes os.moveFile on Windows | Araq | 2015-02-13 | 1 | -2/+10 |
| | |||||
* | fixed minor bugs; cleaned up tests | Araq | 2015-02-12 | 1 | -3/+3 |
| | |||||
* | lots of C++ codegen improvements | Araq | 2015-02-07 | 1 | -2/+6 |
| | |||||
* | nimsuggest: first version | Araq | 2015-01-27 | 1 | -1/+1 |
| | |||||
* | Happy new year! | Guillaume Gelin | 2015-01-06 | 1 | -1/+1 |
| | |||||
* | fixes #685 | Araq | 2014-12-26 | 1 | -1/+1 |
| | |||||
* | cleaned up os.nim; docgen improvements | Araq | 2014-12-21 | 1 | -12/+16 |
| | |||||
* | fixes #1735 | Araq | 2014-12-15 | 1 | -14/+14 |
| | |||||
* | fixes #642 | Araq | 2014-11-23 | 1 | -1/+5 |
| | |||||
* | Merge branch 'devel' of https://github.com/Araq/Nimrod into bigbreak | Araq | 2014-10-04 | 1 | -2/+2 |
|\ | | | | | | | | | | | | | Conflicts: lib/impure/db_postgres.nim lib/pure/os.nim lib/wrappers/postgres.nim | ||||
| * | Fix permissions for createDir() on Unix systems. | Reimer Behrends | 2014-09-22 | 1 | -2/+2 |
| | | | | | | | | | | Permissions were set to 0o711 by default; they should be 0o777, with umask being responsible for restricting permissions further. | ||||
* | | Lots of documentation improvements for asyncdispatch. | Dominik Picheta | 2014-09-12 | 1 | -1/+1 |
| | | | | | | | | Ref #1487. |