当前位置: 首页>>代码示例>>Python>>正文


Python File.fromFullpath方法代码示例

本文整理汇总了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)
开发者ID:SportySpice,项目名称:Collections,代码行数:9,代码来源:router.py

示例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)
开发者ID:SportySpice,项目名称:Collections,代码行数:9,代码来源:router.py

示例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)
开发者ID:SportySpice,项目名称:Collections,代码行数:10,代码来源:router.py

示例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)
开发者ID:SportySpice,项目名称:Collections,代码行数:10,代码来源:router.py

示例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)
开发者ID:SportySpice,项目名称:Collections,代码行数:10,代码来源:router.py

示例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)
开发者ID:SportySpice,项目名称:Collections,代码行数:10,代码来源:router.py

示例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)
开发者ID:SportySpice,项目名称:Collections,代码行数:10,代码来源:router.py

示例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)
开发者ID:SportySpice,项目名称:Collections,代码行数:10,代码来源:router.py

示例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)
开发者ID:SportySpice,项目名称:Collections,代码行数:10,代码来源:router.py


注:本文中的file.File.fromFullpath方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。