Skip to content

Commit

Permalink
Also fix the renaming bug in win32.py
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Jun 5, 2024
1 parent 14937fd commit 54361a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion HinetPy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
import logging
import os
import re
import shutil
import tempfile
import time
import zipfile
from datetime import datetime, timedelta
from html.parser import HTMLParser
from multiprocessing.pool import ThreadPool
import shutil

import requests
from requests.adapters import HTTPAdapter
Expand Down
3 changes: 2 additions & 1 deletion HinetPy/win32.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import glob
import logging
import os
import shutil
import subprocess
import tempfile
from fnmatch import fnmatch
Expand Down Expand Up @@ -383,7 +384,7 @@ def _extract_channel_sac(

if os.path.exists(filename): # some channels have no data
if suffix == "": # remove extra dot if suffix is empty
os.rename(filename, filename[:-1])
shutil.move(filename, filename[:-1])
return filename[:-1]
return filename
return None
Expand Down

0 comments on commit 54361a8

Please sign in to comment.