本文整理汇总了Python中file.File.fromFullpath方法的典型用法代码示例。如果您正苦于以下问题:Python File.fromFullpath方法的具体用法?Python File.fromFullpath怎么用?Python File.fromFullpath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类file.File
的用法示例。
在下文中一共展示了File.fromFullpath方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: addToCollection
# 需要导入模块: from file import File [as 别名]
# 或者: from file.File import fromFullpath [as 别名]
def addToCollection(query):
from paths import add_to_collection
from src.file import File
vSourceId, vSourceFile, sourceType = _decodedUrl(query)
vSourceFile = File.fromFullpath(vSourceFile)
add_to_collection.add(vSourceId, vSourceFile, sourceType)
示例2: playVideoKodiFolder
# 需要导入模块: from file import File [as 别名]
# 或者: from file.File import fromFullpath [as 别名]
def playVideoKodiFolder(query):
from paths import play_video_kodi_folder
from src.file import File
kodiFolderFile, parseMethod = _decodedUrl(query)
kodiFolderFile = File.fromFullpath(kodiFolderFile)
play_video_kodi_folder.play(kodiFolderFile, parseMethod)
示例3: deleteCollection
# 需要导入模块: from file import File [as 别名]
# 或者: from file.File import fromFullpath [as 别名]
def deleteCollection(query):
from paths import delete_collection
from src.file import File
collectionFile, showConfirmDialog, showSuccessDialog, refreshContainer = _decodedUrl(query)
collectionFile = File.fromFullpath(collectionFile)
delete_collection.delete(collectionFile, showConfirmDialog, showSuccessDialog, refreshContainer)
示例4: removeFromCollection
# 需要导入模块: from file import File [as 别名]
# 或者: from file.File import fromFullpath [as 别名]
def removeFromCollection(query):
from paths import remove_from_collection
from src.file import File
collectionFile, sourceId, showConfirmDialog, showSuccessDialog, refreshContainer = _decodedUrl(query)
collectionFile = File.fromFullpath(collectionFile)
remove_from_collection.remove(collectionFile, sourceId, showConfirmDialog, showSuccessDialog, refreshContainer)
示例5: searchYoutube
# 需要导入模块: from file import File [as 别名]
# 或者: from file.File import fromFullpath [as 别名]
def searchYoutube(query):
from paths import search_youtube
from src.file import File
searchType, searchFile, pageNum = _decodedUrl(query)
if searchFile:
searchFile = File.fromFullpath(searchFile)
search_youtube.search(searchType, searchFile, pageNum)
示例6: browseYoutubePlaylist
# 需要导入模块: from file import File [as 别名]
# 或者: from file.File import fromFullpath [as 别名]
def browseYoutubePlaylist(query):
from paths import browse_youtube_playlist
from src.file import File
playlistFile, pageNum = _decodedUrl(query)
playlistFile = File.fromFullpath(playlistFile)
browse_youtube_playlist.browse(playlistFile, pageNum)
示例7: browseYoutubeChannelPlaylists
# 需要导入模块: from file import File [as 别名]
# 或者: from file.File import fromFullpath [as 别名]
def browseYoutubeChannelPlaylists(query):
from paths import browse_youtube_channel_playlists
from src.file import File
channelFile, pageNum = _decodedUrl(query)
channelFile = File.fromFullpath(channelFile)
browse_youtube_channel_playlists.browse(channelFile, pageNum)
示例8: browseYoutubeCategory
# 需要导入模块: from file import File [as 别名]
# 或者: from file.File import fromFullpath [as 别名]
def browseYoutubeCategory(query):
from paths import browse_youtube_category
from file import File
categoryFile, pageNum = _decodedUrl(query)
categoryFile = File.fromFullpath(categoryFile)
browse_youtube_category.browse(categoryFile, pageNum)
示例9: browseKodiFolder
# 需要导入模块: from file import File [as 别名]
# 或者: from file.File import fromFullpath [as 别名]
def browseKodiFolder(query):
from paths import browse_kodi_folder
from file import File
kodiFolderFile, root, estimateDates = _decodedUrl(query)
kodiFolderFile = File.fromFullpath(kodiFolderFile)
browse_kodi_folder.browse(kodiFolderFile, root, estimateDates)