![]() |
|
|||||||
| SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Remove file from library without deleting from disk?
Is this possible from the API? The only functions I can find are "DeleteFile" and "DeleteFileWithoutPrejudice" but these both seem to delete the file from disk. I just want to remove it from the database/library but can't seem to find a function for this?
__________________
-Craig |
|
#2
|
||||
|
||||
|
There isn't any such function. You could use java_io_File calls to rename the file first, then call DeleteFile on the MediaFile, then rename the file back. But if it's in a recording directory and its name has the form of a recording filename, it will probably get added back into the database automatically at some point.
What's the larger problem that you're trying to solve by this?
__________________
-- Greg |
|
#3
|
|||
|
|||
|
I have added some files with the AddMediaFile() function but want to remove them from the library. I can't because there is not an "import directory" to get rid of to clear them out (they show up at the root).
__________________
-Craig |
|
#4
|
||||
|
||||
|
Then your best solution is probably to physically move the files somewhere safe while you call DeleteFile on the MediaFile entries.
__________________
-- Greg |
|
#5
|
|||
|
|||
|
Ok, thanks. I guess I should make a feature request...
__________________
-Craig |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| STV: SageMC 16x9 Version 6.x (latest dev build) | dflachbart | SageMC Custom Interface | 6112 | 04-04-2008 11:16 PM |
| Black screen and no audio on Client | shatter | SageTV Software | 7 | 02-21-2007 08:41 PM |
| Re-ordered frq file doesn't load in SageTV | cortechs | SageTV Software | 2 | 01-14-2007 11:51 AM |