Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8839211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:11:21+00:00 2026-06-14T10:11:21+00:00

Right now I am working on an iOS app that needs NSFileManager but when

  • 0

Right now I am working on an iOS app that needs NSFileManager but when I do the attributesOfItemAtPath: method, it returns null. This also fails on NSData and the dataWithContentsOfFile: method. I do not understand why this is happening. The file URL that I am using looks something like this :file://localhost/private/var/mobile/Applications/597DE145-33D7-4F92-AE95-029D5CF15291/tmp/Kv7DWqtRWH7WnN47HdDW.I suspect it might be something to do with the URL, but I am not sure.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:11:22+00:00Added an answer on June 14, 2026 at 10:11 am

    You need to convert the NSURL to a path for use with any of the NSFileManager methods that take a string. Do this by calling the path method on the URL.

    NSURL *someURL = ... // some file URL
    NSString *path = [someURL path]; // convert the file:// URL to a file path
    NSDictionary *info = [[NSFileManager defaultManager] attributesOfItemAtPath:path];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im working right now on a program that can divide, add, ect, but, im
Working on an iOS app right now - was curious to if it is
I'm working on an iPad app right now that takes as input an XML
I'm new to android developing but right now I'm working on an application that
Right now I am working on one Real Estate Website, In that website I
Right now I'm working on a program that throws up a bunch of separate
Right now I'm working on an archive browsing application that lets users navigate through
I'm working on an rtsp streaming(AAC format) client for iOS using ffmpeg. Right now
I'm working on a project that consist in an IOS App and a webservice
Right now I'm working with an ASP.NET website that automatically generates images and stores

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.