LCOV - code coverage report
Current view: top level - Core - NSFileManagerOOExtensions.h (source / functions) Hit Total Coverage
Test: coverxygen.info Lines: 0 11 0.0 %
Date: 2025-05-28 07:50:54 Functions: 0 0 -

          Line data    Source code
       1           0 : /*
       2             : 
       3             : NSFileManagerOOExtensions.h
       4             : 
       5             : This extends NSFileManager and adds some methods to insulate the
       6             : main oolite code from the gory details of creating/chdiring to the
       7             : commander save directory, as well as handling OXZ inspection
       8             : 
       9             : Oolite
      10             : Copyright (C) 2004-2013 Giles C Williams and contributors
      11             : 
      12             : This program is free software; you can redistribute it and/or
      13             : modify it under the terms of the GNU General Public License
      14             : as published by the Free Software Foundation; either version 2
      15             : of the License, or (at your option) any later version.
      16             : 
      17             : This program is distributed in the hope that it will be useful,
      18             : but WITHOUT ANY WARRANTY; without even the implied warranty of
      19             : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      20             : GNU General Public License for more details.
      21             : 
      22             : You should have received a copy of the GNU General Public License
      23             : along with this program; if not, write to the Free Software
      24             : Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
      25             : MA 02110-1301, USA.
      26             : 
      27             : */
      28             : 
      29             : #import <Foundation/Foundation.h>
      30             : 
      31           0 : #define SAVEDIR "oolite-saves"
      32             : 
      33             : #if OOLITE_SDL
      34             : #define SNAPSHOTDIR "snapshots"
      35             : #endif
      36             : 
      37             : @interface NSFileManager (OOExtensions)
      38             : 
      39           0 : - (NSArray *) commanderContentsOfPath:(NSString*)savePath;
      40           0 : - (NSString *) defaultCommanderPath;
      41             : 
      42             : /*
      43             :         Wrappers for methods that were deprecated in Leopard but whose replacements
      44             :         still aren't in GNUstep.
      45             : */
      46           0 : - (NSArray *) oo_directoryContentsAtPath:(NSString *)path;
      47           0 : - (BOOL) oo_createDirectoryAtPath:(NSString *)path attributes:(NSDictionary *)attributes;
      48           0 : - (NSDictionary *) oo_fileAttributesAtPath:(NSString *)path traverseLink:(BOOL)yorn;
      49           0 : - (NSDictionary *) oo_fileSystemAttributesAtPath:(NSString *)path;
      50           0 : - (BOOL) oo_removeItemAtPath:(NSString *)path;
      51           0 : - (BOOL) oo_moveItemAtPath:(NSString *)src toPath:(NSString *)dest;
      52             : 
      53             : #if OOLITE_SDL
      54             : - (BOOL) chdirToSnapshotPath;
      55             : #endif
      56             : 
      57             : // this also checks inside OXZ files; always returns NO for directories
      58           0 : - (BOOL) oo_oxzFileExistsAtPath:(NSString *)path;
      59             : 
      60             : @end
      61             : 
      62             : 

Generated by: LCOV version 1.14