Gregory John Casamento
b4c24b8f8c
Fixed issues Fred pointed out
2019-08-05 19:44:37 -04:00
Gregory John Casamento
cb20153df4
Add logic to stop enumeration
2019-08-05 16:20:09 -04:00
Gregory John Casamento
904604b448
Skip a file if it's hidden and the flag is YES
2019-08-05 15:46:29 -04:00
Gregory John Casamento
69168d3661
Add new init method
2019-08-05 14:37:58 -04:00
Gregory John Casamento
52459ae2aa
Implementation of URLForDirectory:inDomain:...
2019-08-05 03:29:21 -04:00
Gregory John Casamento
12db1f62c7
Commit progress on NSFileManager
2019-08-04 22:19:28 -04:00
Gregory John Casamento
fe3968a9a1
Get initial skeleton to compile
2019-08-02 15:08:25 -04:00
Richard Frith-Macdonald
2425c42ace
Cosmetic tweaks to match coding style
2019-06-06 14:16:30 +01:00
Frederik Seiffert
75850de0ff
Extended Android asset support
...
Added NSFileManager support for copying assets and reading their attributes.
2019-06-02 16:02:39 -07:00
Frederik Seiffert
3b60b1a8be
Added support for asset loading on Android.
...
Requires passing the activity's AssetManager object from Java to GNUstep by calling +[NSBundle setJavaAssetManager:withJNIEnv:], which then enables the following features:
- NSBundle main bundle resource paths support for Android assets, e.g. for pathForResource:ofType:, URLForResource:ofType: and related methods.
- NSBundle main bundle info dictionary support if Info.plist exists in Android assets.
- -initWithContentsOfFile: and related methods support for reading Android assets from main bundle in various classes (e.g. NSData, NSDictionary, NSArray, etc.).
- NSFileManager fileExistsAtPath:(isDirectory:) and isReadableFileAtPath: return YES for main bundle asset / asset directory paths.
- NSFileHandle support for reading Android assets from main bundle.
- NSDirectoryEnumerator support for enumerating Android assets from main bundle. Note that recursion into subdirectories is currently not supported by the native Android asset manager API (see https://issuetracker.google.com/issues/37002833 ).
Also adds support for automatic NSProcessInfo initialization on Android with a fake executable path "/data/data/<app identifier>/exe" (as Android apps don't have a real executable path), and tweaks main bundle initialization to allow that path. Main bundle resource paths are prefixed by "/data/data/<app identifier>/Resources".
2019-05-23 15:44:07 +02:00
Richard Frith-Macdonald
fec1eafa32
cast to void to avoid warning
2018-02-07 11:40:34 +00:00
Richard Frith-Macdonald
6150b3fd62
Fix for bug #51592
2018-01-02 12:48:18 +00:00
fredkiefer
97f9a02308
Add new symbolic link method to NSFileManager.
2017-12-03 21:55:33 +01:00
Daniel Ferreira
270c1bcea9
NSFileManager: implement -attributesOfFileSystemForPath:withError:
...
Implement a method for getting attribytes of a file system path. Reuse
the implementation of -fileSystemAttributesAtPath: for this purpose but
export the last system errors to the caller. Make
-fileSystemAttributesAtPath: use the new implementation, without
exposing error info to the caller.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
3111003ca1
NSFileManager: create NSFileManagerDelegate
...
Create NSFileManagerDelegate, a more modern manner to verify whether to
proceed a file operation after an error or whether an operation should
actually be performed by NSFileManager.
No functionality using the delegate is yet implemented.
2017-06-29 21:18:16 +01:00
Richard Frith-Macdonald
24d29934cf
Fix directory creation to match actual OSX sematics as determined by adding
...
a few testcases ...
The basic method should fail if the directory already exists.
The intermediate directories method should fail if the directory exists unless
the option to create intermediate directories is selected, in which case a
pre-existing directory is counted as a success.
2017-06-18 09:13:57 +01:00
Riccardo Mottola
b19d076452
Skip file if no valid filename could be retrieved most probably due to Charset mismatches, this is is more a last resort: probably a lossy conversion should be attempted before
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40397 72102866-910b-0410-8b05-ffd578937521
2017-03-17 14:11:14 +00:00
Richard Frith-MacDonald
28de617ef6
Check for file modification during copy
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40137 72102866-910b-0410-8b05-ffd578937521
2016-10-08 07:02:06 +00:00
Richard Frith-MacDonald
d40d219015
removal of garbage collection
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39608 72102866-910b-0410-8b05-ffd578937521
2016-03-25 11:15:28 +00:00
Richard Frith-MacDonald
a0c97c1ddd
deprecate confusing extension in favour of simpler ARC-complient method
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39520 72102866-910b-0410-8b05-ffd578937521
2016-03-10 16:50:41 +00:00
Richard Frith-MacDonald
aaf7f02758
Fix use of authentication credential from URL by Sergei Golovin
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39502 72102866-910b-0410-8b05-ffd578937521
2016-03-09 14:50:40 +00:00
Richard Frith-MacDonald
62d2bcbabc
changes for use of _WIN32 define on windows
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39492 72102866-910b-0410-8b05-ffd578937521
2016-03-09 13:16:16 +00:00
Richard Frith-MacDonald
7027eba9bb
standardize current directory path
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39463 72102866-910b-0410-8b05-ffd578937521
2016-03-05 17:00:52 +00:00
Richard Frith-MacDonald
4f9d5c0982
use compiler conventions to tell if we are on mswindows
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39453 72102866-910b-0410-8b05-ffd578937521
2016-03-04 15:02:07 +00:00
Richard Frith-MacDonald
4a95eb2107
fix for copying subdirectories
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39421 72102866-910b-0410-8b05-ffd578937521
2016-02-29 07:44:12 +00:00
Richard Frith-MacDonald
09f15d2b8d
Use defaults cleanups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39373 72102866-910b-0410-8b05-ffd578937521
2016-02-15 10:10:39 +00:00
Riccardo Mottola
3663d1a4de
Should return success even if all path components do exist, as by Apple spec
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39189 72102866-910b-0410-8b05-ffd578937521
2015-11-22 22:39:09 +00:00
Riccardo Mottola
4f1e798805
Add simple (files only and no keys handling) implementation of 10.6 method contentsOfDirectoryAtURL
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38987 72102866-910b-0410-8b05-ffd578937521
2015-09-16 00:53:30 +00:00
Richard Frith-MacDonald
2ef7040ac3
Add Yavor's lfs patch
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38010 72102866-910b-0410-8b05-ffd578937521
2014-07-25 10:38:20 +00:00
Richard Frith-MacDonald
5960e99013
move executable extensions code out to NSTask+GNUstepBase.m to avoid duplication
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37590 72102866-910b-0410-8b05-ffd578937521
2014-01-13 12:08:04 +00:00
Richard Frith-MacDonald
0af27f52b1
restructure/fix msys root detection
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37583 72102866-910b-0410-8b05-ffd578937521
2014-01-12 16:24:35 +00:00
Richard Frith-MacDonald
6f23a9f315
mingw fixup for executable files
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37567 72102866-910b-0410-8b05-ffd578937521
2014-01-10 15:33:36 +00:00
Richard Frith-MacDonald
ed09c55959
leak detection improvements
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37003 72102866-910b-0410-8b05-ffd578937521
2013-08-22 15:44:54 +00:00
Richard Frith-MacDonald
b2d5fd280c
Changes for 64bit clean printf format strings.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36810 72102866-910b-0410-8b05-ffd578937521
2013-07-03 06:46:41 +00:00
Ivan Vučica
8384be10f3
Fixed a syntax error in NSFileManager.m.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36748 72102866-910b-0410-8b05-ffd578937521
2013-06-23 22:19:58 +00:00
Richard Frith-MacDonald
a0875b7adb
don't try to copy file/group ownership
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36747 72102866-910b-0410-8b05-ffd578937521
2013-06-23 07:29:22 +00:00
Richard Frith-MacDonald
f371df09b6
more static analyser fixups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36532 72102866-910b-0410-8b05-ffd578937521
2013-04-14 18:49:23 +00:00
Richard Frith-MacDonald
1fc503029f
prepare documentation for release
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36443 72102866-910b-0410-8b05-ffd578937521
2013-03-28 08:10:03 +00:00
Richard Frith-MacDonald
e2d806f6a3
make clearer when we are using windows TRUE/FALSE
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36367 72102866-910b-0410-8b05-ffd578937521
2013-03-16 08:07:17 +00:00
Richard Frith-MacDonald
6037f25342
tweak retain/relase of directory
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36323 72102866-910b-0410-8b05-ffd578937521
2013-03-10 11:09:12 +00:00
Richard Frith-MacDonald
cd890161d2
fix autoirelease pool management errors
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36322 72102866-910b-0410-8b05-ffd578937521
2013-03-10 10:54:39 +00:00
Richard Frith-MacDonald
e15c981429
a few new methods
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36311 72102866-910b-0410-8b05-ffd578937521
2013-03-08 14:07:34 +00:00
Richard Frith-MacDonald
4eb74f9607
fix bug#38450
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36277 72102866-910b-0410-8b05-ffd578937521
2013-03-05 15:08:56 +00:00
Richard Frith-MacDonald
75f5788037
Apply patch by Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36272 72102866-910b-0410-8b05-ffd578937521
2013-03-05 12:27:20 +00:00
Richard Frith-MacDonald
e02ff90f23
make code more robust when there's no autorelease pool.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35706 72102866-910b-0410-8b05-ffd578937521
2012-10-17 13:47:11 +00:00
Sergii Stoian
283559fa07
Create directories only if it doesn't exist.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35548 72102866-910b-0410-8b05-ffd578937521
2012-09-09 21:29:38 +00:00
Richard Frith-MacDonald
0be505308d
simplification, including use of strtoull() everywhere
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35503 72102866-910b-0410-8b05-ffd578937521
2012-09-03 13:36:45 +00:00
Richard Frith-MacDonald
fc384c63a3
simplify directory creation code
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35400 72102866-910b-0410-8b05-ffd578937521
2012-08-13 11:07:02 +00:00
Richard Frith-MacDonald
48ed95b668
fix for bug #35672
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35392 72102866-910b-0410-8b05-ffd578937521
2012-08-10 09:25:38 +00:00
Gregory John Casamento
469b95d0e3
Fix misspelling.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35288 72102866-910b-0410-8b05-ffd578937521
2012-07-12 23:13:50 +00:00