fileExistsAtPath: returning NO for files that exist

前端 未结 2 638
孤独总比滥情好
孤独总比滥情好 2021-02-11 12:13

At a point in my code fileExistsAtPath: is returning NO for files that I have confirmed exist. I\'ve been scratching my head at this and can\'t figure out why its not working, s

2条回答
  •  渐次进展
    2021-02-11 12:21

    I was bashing my head against the wall for a few hours. Apparently on each and every run in xcode the app directory path was changing. The UUID part of it. So instead of storing the fullpath I ended up persisting the path postfix and prefixing that with whatever storage class is implied: temporary, cached or documents :-[

提交回复
热议问题