質問編集履歴

3

補足情報の追加

2023/01/11 02:03

投稿

d-hayahsi
d-hayahsi

スコア17

test CHANGED
File without changes
test CHANGED
@@ -39,6 +39,8 @@
39
39
 
40
40
 
41
41
  ### 補足情報(FW/ツールのバージョンなど)
42
+ os.rename(local, share)を実行しても同様のエラーでした。
43
+
42
44
  Windows 11
43
45
  Python:3.9.13
44
46
  pathlib:1.0.1

2

エラーコードの追加

2023/01/11 01:57

投稿

d-hayahsi
d-hayahsi

スコア17

test CHANGED
File without changes
test CHANGED
@@ -7,6 +7,18 @@
7
7
  ### 発生している問題・エラーメッセージ
8
8
 
9
9
  ```
10
+ ---------------------------------------------------------------------------
11
+ OSError Traceback (most recent call last)
12
+ ~\AppData\Local\Temp\ipykernel_8648\3774826219.py in <module>
13
+ ----> 1 local.rename(share)
14
+
15
+ C:\ProgramData\Anaconda3\lib\pathlib.py in rename(self, target)
16
+ 1380 Returns the new Path instance pointing to the target path.
17
+ 1381 """
18
+ -> 1382 self._accessor.rename(self, target)
19
+ 1383 return self.__class__(target)
20
+ 1384
21
+
10
22
  OSError: [WinError 17] ファイルを別のディスク ドライブに移動できません。: 'ローカルフォルダにあるファイルのパス' -> '\\\\共有フォルダのパス'
11
23
 
12
24
 

1

補足情報の追加

2023/01/11 01:56

投稿

d-hayahsi
d-hayahsi

スコア17

test CHANGED
File without changes
test CHANGED
@@ -27,6 +27,7 @@
27
27
 
28
28
 
29
29
  ### 補足情報(FW/ツールのバージョンなど)
30
+ Windows 11
30
31
  Python:3.9.13
31
32
  pathlib:1.0.1
32
33
  jupyterlab:3.4.4