lightspeed.trex.recent_projects.core#

  • SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.

  • SPDX-License-Identifier: Apache-2.0

  • Licensed under the Apache License, Version 2.0 (the “License”);

  • you may not use this file except in compliance with the License.

  • You may obtain a copy of the License at

  • https://www.apache.org/licenses/LICENSE-2.0

  • Unless required by applicable law or agreed to in writing, software

  • distributed under the License is distributed on an “AS IS” BASIS,

  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

  • See the License for the specific language governing permissions and

  • limitations under the License.

class lightspeed.trex.recent_projects.core.RecentProjectsCore#

Bases: object

append_path_to_recent_file(
path: str,
game: str,
capture: str,
save: bool = True,
)#

Append a work file path to file

static convert_size(size_bytes)#
async static find_thumbnail_async(path: str, auto=False)#
get_path_detail(path) Dict[str, str]#

Get details from the given path

get_recent_file_data()#

Load the recent work files from the file

is_recent_file_exist()#
remove_path_from_recent_file(
path: str,
save: bool = True,
)#

Remove a work file path from file

save_recent_file(data)#

Save the recent work files to the file