回答編集履歴

1

コード修正

2020/01/23 11:45

投稿

suhi
suhi

スコア28

test CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  var isDir: ObjCBool = true //true:チェック対象はディレクトリである
10
10
 
11
- if(fileManager.fileExists(atPath: topDir.path ,isDirectory:&isDir)){
11
+ if(fileManager.fileExists(atPath: targetDir.path ,isDirectory:&isDir)){
12
12
 
13
13
  //同名のフォルダが既にある
14
14