Class NSFileManager

  • All Implemented Interfaces:
    NSObjectProtocol, org.robovm.objc.ObjCProtocol

    public class NSFileManager
    extends NSObject
    • Constructor Detail

      • NSFileManager

        public NSFileManager()
      • NSFileManager

        protected NSFileManager​(NSObject.Handle h,
                                long handle)
    • Method Detail

      • getDefaultManager

        public static NSFileManager getDefaultManager()
      • setDelegate

        public void setDelegate​(NSFileManagerDelegate v)
        Since:
        Available in iOS 2.0 and later.
      • getCurrentDirectoryPath

        public java.lang.String getCurrentDirectoryPath()
      • getUbiquityIdentityToken

        public NSObject getUbiquityIdentityToken()
        Since:
        Available in iOS 6.0 and later.
      • getTemporaryDirectory

        public NSURL getTemporaryDirectory()
        Since:
        Available in iOS 10.0 and later.
      • isDirectoryAtPath

        public boolean isDirectoryAtPath​(java.lang.String path)
      • UbiquityIdentityDidChangeNotification

        public static NSString UbiquityIdentityDidChangeNotification()
        Since:
        Available in iOS 6.0 and later.
      • getRelationshipOfDirectoryToItem

        protected boolean getRelationshipOfDirectoryToItem​(org.robovm.rt.bro.ptr.MachineSizedSIntPtr outRelationship,
                                                           NSURL directoryURL,
                                                           NSURL otherURL)
                                                    throws NSErrorException
        Throws:
        NSErrorException
        Since:
        Available in iOS 8.0 and later.
      • getSubpathsOfDirectoryAtPath

        public java.util.List<java.lang.String> getSubpathsOfDirectoryAtPath​(java.lang.String path)
                                                                      throws NSErrorException
        Throws:
        NSErrorException
        Since:
        Available in iOS 2.0 and later.
      • createSymbolicLinkAtPath

        public boolean createSymbolicLinkAtPath​(java.lang.String path,
                                                java.lang.String destPath)
                                         throws NSErrorException
        Throws:
        NSErrorException
        Since:
        Available in iOS 2.0 and later.
      • getDestinationOfSymbolicLinkAtPath

        public java.lang.String getDestinationOfSymbolicLinkAtPath​(java.lang.String path)
                                                            throws NSErrorException
        Throws:
        NSErrorException
        Since:
        Available in iOS 2.0 and later.
      • copyItemAtPath

        public boolean copyItemAtPath​(java.lang.String srcPath,
                                      java.lang.String dstPath)
                               throws NSErrorException
        Throws:
        NSErrorException
        Since:
        Available in iOS 2.0 and later.
      • moveItemAtPath

        public boolean moveItemAtPath​(java.lang.String srcPath,
                                      java.lang.String dstPath)
                               throws NSErrorException
        Throws:
        NSErrorException
        Since:
        Available in iOS 2.0 and later.
      • linkItemAtPath

        public boolean linkItemAtPath​(java.lang.String srcPath,
                                      java.lang.String dstPath)
                               throws NSErrorException
        Throws:
        NSErrorException
        Since:
        Available in iOS 2.0 and later.
      • removeItemAtPath

        public boolean removeItemAtPath​(java.lang.String path)
                                 throws NSErrorException
        Throws:
        NSErrorException
        Since:
        Available in iOS 2.0 and later.
      • changeCurrentDirectoryPath

        public boolean changeCurrentDirectoryPath​(java.lang.String path)
      • fileExists

        public boolean fileExists​(java.lang.String path)
      • fileExists

        protected boolean fileExists​(java.lang.String path,
                                     org.robovm.rt.bro.ptr.BooleanPtr isDirectory)
      • fileIsReadable

        public boolean fileIsReadable​(java.lang.String path)
      • fileIsWritable

        public boolean fileIsWritable​(java.lang.String path)
      • fileIsExecutable

        public boolean fileIsExecutable​(java.lang.String path)
      • fileIsDeletable

        public boolean fileIsDeletable​(java.lang.String path)
      • contentsAtPathEqual

        public boolean contentsAtPathEqual​(java.lang.String path1,
                                           java.lang.String path2)
      • getDisplayNameAtPath

        public java.lang.String getDisplayNameAtPath​(java.lang.String path)
      • getComponentsToDisplayForPath

        public java.util.List<java.lang.String> getComponentsToDisplayForPath​(java.lang.String path)
      • getSubpathsAtPath

        public java.util.List<java.lang.String> getSubpathsAtPath​(java.lang.String path)
      • getContentsAtPath

        public NSData getContentsAtPath​(java.lang.String path)
      • createFileAtPath

        public boolean createFileAtPath​(java.lang.String path,
                                        NSData data,
                                        NSFileAttributes attr)
      • getFileSystemRepresentationForPath

        public java.lang.String getFileSystemRepresentationForPath​(java.lang.String path)
      • getPathForFileSystemRepresentation

        public java.lang.String getPathForFileSystemRepresentation​(org.robovm.rt.bro.ptr.BytePtr str,
                                                                   long len)
      • isUbiquitousItemAtURL

        public boolean isUbiquitousItemAtURL​(NSURL url)
        Since:
        Available in iOS 5.0 and later.
      • startDownloadingUbiquitousItemAtURL

        public boolean startDownloadingUbiquitousItemAtURL​(NSURL url)
                                                    throws NSErrorException
        Throws:
        NSErrorException
        Since:
        Available in iOS 5.0 and later.
      • getURLForUbiquityContainerIdentifier

        public NSURL getURLForUbiquityContainerIdentifier​(java.lang.String containerIdentifier)
        Since:
        Available in iOS 5.0 and later.
      • getContainerURLForSecurityApplication

        public NSURL getContainerURLForSecurityApplication​(java.lang.String groupIdentifier)
        Since:
        Available in iOS 7.0 and later.