Skip to content

Commit

Permalink
Update macos sonoma file system changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nahitheper committed Sep 19, 2023
1 parent 2c608c8 commit 7d72df2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Zeplin.sketchplugin/Contents/Sketch/utils.cocoascript
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,8 @@ var temporaryPath = function() {
var temporaryDirectory = NSTemporaryDirectory();
var temporaryZeplinDirectory = [temporaryDirectory stringByAppendingPathComponent:@"io.zeplin.osx"];

var isDir = MOPointer.alloc().initWithValue_(false);
var fileManager = [NSFileManager defaultManager];
if (![fileManager fileExistsAtPath:temporaryZeplinDirectory isDirectory:isDir] || isDir.value() == false) {
[fileManager removeItemAtPath:temporaryZeplinDirectory error:nil];
if (![fileManager fileExistsAtPath:temporaryZeplinDirectory]) {
[fileManager createDirectoryAtPath:temporaryZeplinDirectory withIntermediateDirectories:true attributes:nil error:nil];
}

Expand Down

0 comments on commit 7d72df2

Please sign in to comment.