Skip to content

Commit

Permalink
Merge pull request #57 from zeplin/bugfix/sonoma-file-system-changes
Browse files Browse the repository at this point in the history
Update macOS Sonoma file system changes
  • Loading branch information
SamilCan authored Sep 27, 2023
2 parents 2c608c8 + 7d72df2 commit ea598fe
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 ea598fe

Please sign in to comment.