diff --git a/imagepaste/clipboard/clipboard.py b/imagepaste/clipboard/clipboard.py index 483c152..0382a24 100644 --- a/imagepaste/clipboard/clipboard.py +++ b/imagepaste/clipboard/clipboard.py @@ -56,7 +56,7 @@ def pull(cls, image_path: str) -> Clipboard: pass @staticmethod - def get_timestamp_filename() -> str: + def get_filename() -> str: """Get a string representation of the current time in the file name format. Returns: diff --git a/imagepaste/clipboard/darwin/darwin.py b/imagepaste/clipboard/darwin/darwin.py index 53eb8f0..bd3b0bb 100644 --- a/imagepaste/clipboard/darwin/darwin.py +++ b/imagepaste/clipboard/darwin/darwin.py @@ -46,7 +46,7 @@ def push(cls, save_directory: str) -> DarwinClipboard: # Save an image if it is in the clipboard contents = pb.get_contents(type=pasteboard.TIFF) if contents is not None: - filename = cls.get_timestamp_filename() + filename = cls.get_filename() filepath = join(save_directory, filename) commands = [ "set pastedImage to " diff --git a/imagepaste/clipboard/linux/linux.py b/imagepaste/clipboard/linux/linux.py index 4f89828..aa67bd5 100644 --- a/imagepaste/clipboard/linux/linux.py +++ b/imagepaste/clipboard/linux/linux.py @@ -50,7 +50,7 @@ def push(cls, save_directory: str) -> LinuxClipboard: # If there is an image in clipboard, save the image and send its path if XclipTarget.IMAGE.value in process.stdout: - filename = cls.get_timestamp_filename() + filename = cls.get_filename() filepath = join(save_directory, filename) process = Process.execute( cls.get_xclip_args(XclipTarget.IMAGE.value), outpath=filepath diff --git a/imagepaste/clipboard/windows/windows.py b/imagepaste/clipboard/windows/windows.py index 041bf59..6b44cda 100644 --- a/imagepaste/clipboard/windows/windows.py +++ b/imagepaste/clipboard/windows/windows.py @@ -32,7 +32,7 @@ def push(cls, save_directory: str) -> WindowsClipboard: """ from os.path import join - filename = cls.get_timestamp_filename() + filename = cls.get_filename() filepath = join(save_directory, filename) image_script = (