Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""
2@file
3@brief Shortcuts to filehelper
4"""
5import os
6from .anyfhelper import change_file_status, read_content_ufs
7from .compression_helper import (
8 zip_files, gzip_files, zip7_files, unzip_files, ungzip_files,
9 un7zip_files, unrar_files, untar_files)
10from .download_helper import (
11 get_url_content_timeout, get_urls_content_timeout,
12 InternetException, local_url)
13from .encrypted_backup import EncryptedBackup
14from .encryption import decrypt_stream, encrypt_stream
15from .file_info import FileInfo, is_file_string, checksum_md5, is_url_string
16from .ftp_transfer import TransferFTP
17from .ftp_transfer_files import FolderTransferFTP
18from .file_tree_node import FileTreeNode
19from .internet_helper import download, read_url
20from .synchelper import explore_folder, synchronize_folder, has_been_updated, remove_folder
21from .synchelper import explore_folder_iterfile, explore_folder_iterfile_repo, walk
22from .transfer_api import TransferAPI
23from .transfer_api_ftp import TransferAPIFtp
24from .transfer_api_file import TransferAPIFile
25from .visual_sync import create_visual_diff_through_html, create_visual_diff_through_html_files
28def check():
29 """
30 checks difflibjs is present
31 """
32 path = os.path.abspath(os.path.dirname(__file__))
33 fold = os.path.join(path, "temp_difflibjs")
34 r = os.path.exists(fold)
35 if not r:
36 return r
37 f = os.path.join(fold, "jsdifflib.zip")
38 r = os.path.exists(f)
39 if not r:
40 return r
41 size = os.stat(f).st_size
42 return size > 0