Commit graph

410 commits

Author SHA1 Message Date
Araq
8d6ed9429a make getAppFilename work when there is no procfs 2014-04-22 23:15:29 +02:00
Andreas Rumpf
23621857bb Merge pull request #1099 from Varriount/os/getFileInfo
Added os.getFileInfo procedure.
2014-04-20 23:40:29 +02:00
Araq
e6d17e6273 made large parts of the stdlib gcsafe 2014-04-20 20:01:24 +02:00
Clay Sweetser
73570cbe38 Allowed getFileInfo to accept TFile objects. 2014-04-16 03:35:08 -04:00
Clay Sweetser
79f0c66b4d Completed Linux/Posix implementation of getFileInfo
Moved parts of getFileInfo into a helper template.
2014-04-16 03:35:08 -04:00
Clay Sweetser
8af083c847 Added Posix implementation of getFileInfo, organized code. 2014-04-16 03:35:07 -04:00
Clay Sweetser
37ac424e9a Added Windows implementation of getFileInfo procedures 2014-04-16 03:35:07 -04:00
Dominik Picheta
15919b7c98 EOS exception now contains the error code. 2014-03-11 23:06:22 +00:00
Araq
d4263b1012 bugfix: walkFiles on windows shouldn't yield directories 2014-03-02 11:15:31 +01:00
Araq
f95a8df243 fixes #811 2014-02-14 22:19:40 +01:00
Araq
09c8a51348 bugfix: 'system' on windows is sane 2014-02-14 15:46:30 +01:00
Araq
8215a32edd case consistency for -d:useWinAnsi 2014-02-05 23:46:55 +01:00
Araq
7196c7637e bootstraps again 2014-02-02 10:07:29 +01:00
Clay Sweetser
7cd5e79464 Added symlink procs 2014-02-01 20:56:34 -05:00
Araq
38db937193 merged #811 against devel 2014-02-02 01:22:31 +01:00
Araq
de538deb7a should compile on netbsd 2014-01-23 20:43:56 +01:00
Araq
36afdca87f resolved conflicts with master 2014-01-18 01:16:45 +01:00
Araq
286f166304 case consistency for linux 2013-12-29 03:32:46 +01:00
Araq
b731e6ef1c case consistency: cs:partial bootstraps on windows 2013-12-29 03:19:10 +01:00
Araq
438703f59e case consistency: next steps 2013-12-29 01:13:51 +01:00
Araq
1101a40f91 improvements for 'pretty' 2013-12-28 23:30:53 +01:00
Araq
92b8fac94a case consistency part 4 2013-12-27 23:10:36 +01:00
Araq
a427648c48 case consistency part 2 2013-12-27 16:35:21 +01:00
Araq
2df9b442c6 case consistency part 1 2013-12-27 15:48:53 +01:00
Araq
feb9af48f1 NoFakeVars progress 2013-12-24 00:21:22 +01:00
Billingsly Wetherfordshire
e1fa19fa7a Update os.nim
added file/dirExists synonyms for existsFile/dir
2013-12-23 12:58:22 -06:00
Araq
b76729df1c Merge branch 'master' of https://github.com/Araq/Nimrod into vm2
Conflicts:
	web/news.txt
2013-12-23 01:23:16 +01:00
Araq
9145bcfbb6 new VM: some progress for the FFI support 2013-12-23 01:17:48 +01:00
Clay Sweetser
9de92522a6 Further fixes (stupid kdiff automerge) 2013-12-18 16:04:43 -05:00
Clay Sweetser
c26e787e5d os.nim - Modify removeFile to use native Windows API calls 2013-12-18 15:32:26 -05:00
Clay Sweetser
ab2eb884a0 Modified os.removeFile to act correctly when deleting a file that doesn't exist. 2013-12-17 18:03:08 -05:00
Clay Sweetser
33ffe60864 Fixed skipFile proc to not skip files that merely start with '.'
Modified removeFile to reset the read only attribute on files before trying to delete.
2013-12-11 16:16:14 -05:00
Michał Zieliński
8dae664159 Add commandLineParams to os.nim.
commandLineParams returns seq of arguments given to program on command line.
2013-12-09 21:45:42 +01:00
Michał Zieliński
642a0d5563 Normalize whitespace in os.nim.
I can't edit it - trick with asking git to ignore whitespace doesn't
work if I need to change indention level.
2013-12-09 18:03:36 +01:00
Araq
c11398ea0d bugfix: typos in os.nim 2013-09-24 09:27:00 +02:00
Araq
05d12897a2 changed parentDir to return the empty string on error 2013-09-24 09:22:29 +02:00
Araq
39da6979ad use realpath in a posix compliant way 2013-09-01 22:53:02 +02:00
Araq
ee9aee6c00 bugfix createDir for solaris 2013-08-07 01:36:15 +02:00
Grzegorz Adam Hankiewicz
c0b78276e8 Adds convenience expandTilde proc around getHomeDir. 2013-07-19 23:20:06 +02:00
Grzegorz Adam Hankiewicz
68cfb25c11 Adds convenience copyFileWithPermissions to os module. 2013-07-19 22:52:11 +02:00
Grzegorz Adam Hankiewicz
2ee228d5d1 Documents copyFile not copying attributes on posix. 2013-07-16 02:56:50 +02:00
Grzegorz Adam Hankiewicz
b5811cc73c Adds some examples to JoinPath and / procs. 2013-07-16 00:47:49 +02:00
Dominik Picheta
bacb20a379 Deprecated OSError, and modified it to require an explicit OS error code.
The deprecated functions include the OSError and OSErrorMsg, the name did not change however the signature of the new functions did. They now require a TOSErrorCode value be passed to them. This value can be retrieved using OSLastError. The reason this was done is because on Windows any win api call can reset the last error code to 0, this change allows the user to immediately grab the error code and worry about the string representation later if needs be.
2013-06-25 20:10:28 +01:00
Dominik Picheta
d23d14897a Symlinks are now expanded in os.getAppFilename on Mac OS X. 2013-06-22 00:15:07 +01:00
Araq
1100521b6e no wrapBinary for 'useWinAnsi' target 2013-05-20 09:29:01 +02:00
Araq
baf89e3d66 GC'ed wide strings for windows 2013-05-20 02:17:24 +02:00
Grzegorz Adam Hankiewicz
8d1f7869ae Adds to docstrings link between removeFile and removeDir. 2013-04-18 01:07:21 +02:00
Grzegorz Adam Hankiewicz
72a3e21f28 Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
Araq
180ab350dc applies #322 without FReadDir effect 2013-02-22 01:18:20 +01:00
Dominik Picheta
9aecfcd8c8 Fixed os.sleep not sleeping for long enough with values below 1000ms. 2013-01-21 14:20:54 +00:00