Lines 1960-1973
class gpkg:
Link Here
|
1960 |
|
1960 |
|
1961 |
image_max_link_length = max(image_max_link_length, path_link_length) |
1961 |
image_max_link_length = max(image_max_link_length, path_link_length) |
1962 |
|
1962 |
|
1963 |
try: |
1963 |
if os.path.islink(f): |
1964 |
file_size = os.path.getsize(f) |
1964 |
continue |
1965 |
except FileNotFoundError: |
1965 |
|
1966 |
# Ignore file not found if symlink to non-existing file |
1966 |
file_size = os.path.getsize(f) |
1967 |
if os.path.islink(f): |
|
|
1968 |
continue |
1969 |
else: |
1970 |
raise |
1971 |
image_total_size += file_size |
1967 |
image_total_size += file_size |
1972 |
image_max_file_size = max(image_max_file_size, file_size) |
1968 |
image_max_file_size = max(image_max_file_size, file_size) |
1973 |
|
1969 |
|
Lines 2055-2068
class gpkg:
Link Here
|
2055 |
image_max_link_length = max(image_max_link_length, path_link_length) |
2051 |
image_max_link_length = max(image_max_link_length, path_link_length) |
2056 |
|
2052 |
|
2057 |
if os.path.isfile(path): |
2053 |
if os.path.isfile(path): |
2058 |
try: |
2054 |
if os.path.islink(path): |
2059 |
file_size = os.path.getsize(path) |
2055 |
continue |
2060 |
except FileNotFoundError: |
2056 |
|
2061 |
# Ignore file not found if symlink to non-existing file |
2057 |
file_size = os.path.getsize(path) |
2062 |
if os.path.islink(path): |
|
|
2063 |
continue |
2064 |
else: |
2065 |
raise |
2066 |
image_total_size += file_size |
2058 |
image_total_size += file_size |
2067 |
if file_size > image_max_file_size: |
2059 |
if file_size > image_max_file_size: |
2068 |
image_max_file_size = file_size |
2060 |
image_max_file_size = file_size |
2069 |
- |
|
|